Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Text of Layer Help

Status
Not open for further replies.

duklaprague

Technical User
May 7, 2002
7
0
0
GB
Hope someone can help with this.

Basically trying to use this behaviour to show large previews of thumbnails when someone mouses over them.

This is working perfectly :

<a href="details.php?ItemID=<?php echo $row_chineseDesigns['ItemID']; ?>" onmouseover="MM_setTextOfLayer('preview','','<?php echo $row_chineseDesigns['Reference']; ?>')"><img src="thumbpersian.php?file=jewelleryimages/<?php echo $row_chineseDesigns['ImageLarge'];?>" alt="Bracelet Designs" border="0"></a>

And displaying the correct reference number, ie the part in bold above.

So all I'm trying to do is replace that with :

<img src="jewelleryimages/<?php echo $row_chineseDesigns['ImageLarge'];?>" alt="Bracelet Designs" border="0">

To show the images rather than a field's text.

This isn't working tho' - the characters ')"> are wrongly appearing as part of the link, and the behaviour isn't pulling the image through in the layer.

I've checked that code - if I put :

<img src="jewelleryimages/<?php echo $row_chineseDesigns['ImageLarge'];?>" alt="Bracelet Designs" border="0">

Directly into the layer, it correctly displays the correct image of the first record.

Hope that makes sense, and someone might see where I'm going wrong.

Cheers.
 
consider using show-hide layer...not sure that u can use SetText of layer to set it to be image.
Perhaps this is what your are after
this
Here is how to:
tutorial

All the best!


:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
nice work!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top