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>
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>