Friday, September 23, 2011

How do i get the visitors to click a link to change the background image ?

A simple script like this that changes the back ground instead of just the color ?

i am new enough to html, and I was wondering if anyone could give me a code or alter this one, so that instead of the color changing it would be a image that changes . If you could explain clearly about how i pick the image I want to use, does it have to be on the web already ? thanks - Finn

Best answer = Script that works with instructions thnx



________________________________



%26lt;!--

Script by http://www.hypergurl.com --%26gt; %26lt;form name=%26quot;changeColor%26quot;%26gt;

%26lt;p%26gt;%26lt;font size=%26quot;2%26quot; face=%26quot;Verdana,Arial,Helvetica,Sans Serif%26quot;%26gt;Choose

a Background Color: %26lt;br%26gt; %26lt;br%26gt; %26lt;input type=%26quot;button%26quot; name=%26quot;colr%26quot;



%26lt;input type=%26quot;button%26quot; name=%26quot;colr%26quot; value=%26quot; GREEN %26quot;

onclick=%26quot;document.bgColor='#00FF00'%26quot;%26gt; %26lt;input type=%26quot;button%26quot;

name=%26quot;colr%26quot; value=%26quot; WHITE %26quot; onclick=%26quot;document.bgColor='#FFFFFF'%26quot;%26gt;

%26lt;input type=%26quot;button%26quot; name=%26quot;colr%26quot; value=%26quot; BLACK %26quot;

onclick=%26quot;document.bgColor='#000000'%26quot;%26gt;%26lt;?%26lt;/How do i get the visitors to click a link to change the background image ?The code exists on http://www.dynamicdrive.com under Document Effects
  • rodents
  • server
  •