HighDots Forums  

Puzzling background Questons

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Puzzling background Questons in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ezydesignz
 
Posts: n/a

Default Puzzling background Questons - 08-13-2003 , 12:20 AM






Howdy all,
In a html webpage is there anyway i can have links which will change the
background image without having to design all the differant pages?

for example I just want 1 page, and 10 images so that when the person is
clicking they can see the differant backgrounds.

any ideas?



Reply With Quote
  #2  
Old   
Jerry Baker
 
Posts: n/a

Default Re: Puzzling background Questons - 08-13-2003 , 02:04 AM






ezydesignz wrote:

Quote:
Howdy all,
In a html webpage is there anyway i can have links which will change the
background image without having to design all the differant pages?

for example I just want 1 page, and 10 images so that when the person is
clicking they can see the differant backgrounds.

any ideas?
Yes, you can do it. If you have ever heard someone use the term "DOM"
before, this is what they are talking about. A link like this should work:

<a href="javascript:document.body.background='test.gi f'">test</a>

--
Jerry Baker

Automatic unique ALT & TITLE text for each image: Insert Image+
Switch doctypes on the fly with a mouse click: Insert (X)HTML Doctypes
http://www.dwfaq.com/store/merchants...ID=Jerry+Baker



Reply With Quote
  #3  
Old   
Jerardn webforumsuser@macromedia.com
 
Posts: n/a

Default Re:Puzzling background Questons - 08-13-2003 , 02:44 AM



<a href="#" onClick="document.body.style.backgroundImage='url( YOUR IMAGE HERE)'"><img src="YOUR IMAGE HERE" width="180" height="135"></a>

this will make a link on a picture that when clicked will change the background to that picture.


Jerard Neal
http://www.centexdesigns.net



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.