Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 07-29-2005, 02:43 AM
mikebshaw Offline
forum loafer
 
Join Date: Jul 2005
Posts: 12
Custom image ALT text?

How would I implement a customized ALT text when the mouse rolls over the image?

Example website: http://steff.altervista.org/index.php

I would like to have more information in the ALT text other than the name of the previous image.

Thanks

Mike
Reply With Quote
  #2  
Old 07-29-2005, 04:54 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
http://neo.dzygn.com/archive/2003/12/nicer-titles is a popular script for it
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 07-29-2005, 08:22 AM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
doh!

I used to OVERLIB library, found in the ratings addon

as suggested by the creator of this addon, I just modified my template in this way:

1) in the head part, add
Code:
<script type="text/javascript" src="overlib/overlib.js"></script>
<script type="text/javascript" src="overlib/overlib_fade.js"></script>
2) change the HTML image-display commands to:

Code:
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"
onmouseover="return overlib('Click to see previous image: <b><IMAGE_PREVIOUS_TITLE></b>', BGCOLOR, '#333366', FGCOLOR, '#FFFFFF', OPACITY, '60' );"
onmouseout="return nd();">
<img id="image" src="images/<IMAGE_NAME>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" /></a>
Reply With Quote
  #4  
Old 07-29-2005, 03:49 PM
mikebshaw Offline
forum loafer
 
Join Date: Jul 2005
Posts: 12
Thank you both! You have been extremely helpful.
Reply With Quote
  #5  
Old 04-07-2006, 05:21 PM
trailsoflight Offline
forum loafer
 
Join Date: Nov 2005
Posts: 10
Does anyone know how to modify steffs code to display the previous image thumbnail instead of the previous image id? I tried to get the overlib to "float" the thumb but did not have any success. For now I have used steffs code to display the prev image name only.

Thanks

Craig
http://www.trailsoflight.com/index.php
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:58 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs