Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Viewer 2 Display_a_background_image_tiled  

Display_a_background_image_tiled

Method #1 — using CSS in a style element in

Category: Viewer 2
By : Becky Pippen
Created: 2010-09-02 Edited: 2010-09-02
Worlds: Second Life

the Zip file

Download all files for Display_a_background_image_tiled
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Display_a_background_image_tiled_1.lsl
Get file # 2. Display_a_background_image_tiled_2.lsl
Get file # 3. Display_a_background_image_tiled_3.lsl
1 default
2
3 {
4
6
7 {
8
9 integer face = 4;
10
11 string imageURL =
12
13 "http://www.google.com/intl/en_ALL/images/logo.gif";
14
15 string dataURI = "data:text/html,<head>"
16
17 + "<style type='text/css'>body{background-image:url(\""
18
19 + imageURL + "\");}</style></head><body>Hello World</body>";
20
21 llSetPrimMediaParams(face,
22
23 [PRIM_MEDIA_CURRENT_URL, dataURI]);
24
25 }
26
27 }

Display_a_background_image_tiled

Method #2 — using background attribute in

Category: Viewer 2
By : Becky Pippen
Created: 2010-09-02 Edited: 2010-09-02
Worlds: Second Life

1 default
2
3 {
4
6
7 {
8
9 integer face = 4;
10
11 string imageURL = "http://www.google.com/intl/en_ALL/images/logo.gif";
12
13 string dataURI = "data:text/html,<body background='" + imageURL + "'>"
14
15 + "Hello World"
16
17 + "</body>";
18
19 llSetPrimMediaParams(face,
20
21 [PRIM_MEDIA_CURRENT_URL, dataURI]);
22
23 }
24
25 }

Display_a_background_image_tiled

Method #3 — using style attribute in

Category: Viewer 2
By : Becky Pippen
Created: 2010-09-02 Edited: 2010-09-02
Worlds: Second Life

1 default
2
3 {
4
6
7 {
8
9 integer face = 4;
10
11 string imageURL = "http://www.google.com/intl/en_ALL/images/logo.gif";
12
13 string dataURI = "data:text/html,<body style='background-image:url(\"" + imageURL + "\")'>"
14
15 + "Hello World"
16
17 + "</body>";
18
19 llSetPrimMediaParams(face,
20
21 [PRIM_MEDIA_CURRENT_URL, dataURI]);
22
23 }
24
25 }

Back to the Best Free Tools in Second Life and OpenSim.