Help me for a few lines of script

B

Bizcatone

Hi

I am new to JS and want to add some actions to a few images. Can somebody
help to complete the codes for me.

I need 2 functions:

(1)
Original small image size,
would like to enlarge to say 400x400px on mouse over.

(2)
on mouse down
open a new window and load a specific html page.



<html>
<head>
<script type="text/javascript">

function enlargeimage()
{
???
}

function newwindow()
{
Open a new window
load pagename.html
}



</script>
</head>

<body>



<image1>
on mouse over
enlargeimage()
on mouse out
return to original size

set var pagename="test1"
on mouse down
newwindow()


<image2>
on mouse over
enlargeimage()
on mouse out
return to original size

set var pagename="test2"
on mouse down
newwindow()


<image3>
on mouse over
enlargeimage()
on mouse out
return to original size

set var pagename="test3"
on mouse down
newwindow()



</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top