View Full Version : How do I set this up? (html)


lil-monk
03-22-2006, 11:33 PM
Hi I am doing an assignment but I just don't understand one part of it. I have uploaded the assignment model which I have to copy to geocities.

http://www.geocities.com/ssgoten6/Assignment.htm

I would look at the source to find out what it is but it is encrypted, Is there a way to decrypt it? if not,

I just need help where you have to change "images/earth.jpg" to "images/saturn.jpg" to be able to change the picture. Sorry I cannot get the pictures to turn up.

Thanks

lil-monk
03-23-2006, 01:18 AM
Maybe I should add my source code as well.

<HTML>

<HEAD>
<TITLE>Assignment 7</TITLE>
</HEAD>

<BODY>

<IMG NAME="planet" SRC="images/earth.jpg">

<P>

<FORM NAME="theForm" ONSUBMIT="return false;">

Enter the URL of an image and then click "Show
New Image". (Any valid image URL will work,
but try "images/moon.jpg" and "images/saturn.jpg".)
<BR>
<BR>
<INPUT TYPE=text NAME="Planet" VALUE="images/earth.jpg" SIZE=30>

<P>


<INPUT
TYPE=button
VALUE="Show New Image"
ONCLICK="window.document.planet.src='images/earth.jpg';
window.document.saturn.src='images/saturn.jpg';">
<BR>
<BR>

<INPUT TYPE=button VALUE="Move Window" ONCLICK="window.moveBy(10,10);">
<BR>
<BR>
<INPUT TYPE=button VALUE="Close Window" ONCLICK="window.close();" >



</FORM>

</BODY>

</HTML>

The red font is where I need help.