how to get -variables that pass onMouseOver

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
giliat
Forum Commoner
Posts: 28
Joined: Sun May 20, 2007 2:00 pm

how to get -variables that pass onMouseOver

Post by giliat »

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]


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


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]
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

You're trying to use HTTP_GET syntax in javascript. Pass them as comma separated parameters to the javascript function.
Post Reply