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]
hello
i have a photo gallery that display the photo in small ratio and when the mouse over one photo it display a big size
the problem is that im traying to pass the photo size allong the photo = ?WIDTH=".$width1."&HEIGHT=".$height1."
i can see that the big image that display have the info = 2_1.jpg?WIDTH=250&HEIGHT=167
but when i tray to get if with = $WIDTH = $_REQUEST['WIDTH']; i got nothing !!!
the small image whith the link=Code: Select all
echo "<A HREF=\"#\" onMouseOver=\"return(loadPosterImage('pictures/location/$pic1?WIDTH=".$width1."&HEIGHT=".$height1."'))\" />
<img border=$border src=pictures/location/",$pic1," alt=",$name," width=",$width1/3.2," height=",$height1/3.2,"></a>";the big image display=
Code: Select all
echo "<IMG border=$border NAME=imagePoster width=",$width," height=",$height,"the java script in the head=
Code: Select all
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function canManipulateImages() {
if (document.images)
return true;
else
return false;
}
function loadPosterImage(imageURL) {
if (gImageCapableBrowser) {
document.imagePoster.src = imageURL;
return false;
}
else {
return true;
}
}
gImageCapableBrowser = canManipulateImages();
</SCRIPT>THANKS
feyd | Please use
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]