Replacing Picture Problem

liunx

Guest
I'll try to explain this as best I can. I have a .png file with dimensions 200 x 800 pixels. I want to make a page where someone can click on a link to this picture (eg. picture.png) and it will open that picture, except with encrypted in it the background color and placement on the page. Basically, rather then having the white background, I want it navy and rather then having it aligned to the left of the screen, I want it in the middle without making its own web page. Is this possible or would I have to make a web page with bgcolor = navy and <center>?<!--content-->you have to make a seperate page if you want to change colors and do some placements.<!--content-->so what u want to do is when u click on a button the background changes?<br />
<br />
if so then this is needed, u have to use a JS function in the header.<br />
<br />
ex.<br />
<br />
<script language="JavaScript"><br />
<br />
function bg(bgname){<br />
<br />
document.write("<body background="+'"'+bgname+'"'+">")<br />
}<br />
</script><br />
<br />
<body><br />
<br />
<br />
<A href=http://www.htmlforums.com/archive/index.php/"javascript:onclick='bg();"><br />
<br />
</body><br />
<br />
</html><br />
<br />
<br />
something like that i only had a few minutes before bed time so im not sure if thats right.<br />
<br />
email me if u got any questions.<!--content-->so what u want to do is when u click on a button the background changes?<br />
<br />
if so then this is needed, u have to use a JS function in the header.<br />
<br />
ex.<br />
<br />
<script language="JavaScript"><br />
<br />
function bg(bgname){<br />
<br />
document.write("<body background="+'"'+bgname+'"'+">")<br />
}<br />
</script><br />
<br />
<body><br />
<br />
<br />
<A href=http://www.htmlforums.com/archive/index.php/"javascript:onclick='bg();"><br />
<br />
</body><br />
<br />
</html><br />
<br />
<br />
or there is <br />
<br />
<br />
<br />
<script language="javascript"><br />
<br />
function image[1](){<br />
<br />
document.background= image.gif<br />
<br />
</script><br />
<br />
<br />
<body><br />
<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:onclick='image[1]();"><br />
<br />
</body><br />
<br />
</html><br />
<br />
<br />
<br />
<br />
</SCRIPT><br />
<br />
<br />
something like that i only had a few minutes before bed time so im not sure if thats right.<br />
<br />
email me if u got any questions.<!--content-->
 
Back
Top