Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
What is the part between the parenthesis referred to as in a function(this-right-here);?
I'd like to use it to pass information to a script to make it scalable....
[syntax="html"]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title>
<script type="text/javascript">
function imageswap(id, newImage)
{
identity=document.getElementById(id);
identity.src=newImage;
}
// Functions
function gallery0001() {imageswap('galleryimagehere', 'image-0001.jpg');}
function gallery0002() {imageswap('galleryimagehere', 'image-0002.jpg');}
</script>
</head>
<body>
<div class="center">
<img alt="Full Sized Image" id="galleryimagehere" src="images/image-0001.jpg" />
</div>
<div id="gallery">
<a href="<?php echo $_SERVER['PHP_SELF'];?>?image=0001" onkeyup="gallery0001()" onmouseover="gallery0001();"><img alt="" src="images/image-thumb-0001.gif" /><span>0001</span></a>
<a href="<?php echo $_SERVER['PHP_SELF'];?>?image=0002" onkeyup="gallery0002()" onmouseover="gallery0002();"><img alt="" src="images/image-thumb-0002.gif" /><span>0002</span></a>
</div>
</body>
</html> feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]