Help me for a few lines of script
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Help me for a few lines of script

From: Bizcatone <bizcatone@netvigator.com>
Date: Tue Jan 31 2006 - 06:43:35 CET

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>
Received on Tue Feb 7 21:28:28 2006