Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Roll-over action and link from images (http://forum.bytesforall.com/showthread.php?t=14760)

allyevans Jun 24, 2011 09:47 AM

Roll-over action and link from images
 
Hi - I am using a combination of the built-in WP Gallery and Nextgen for my images. On my home page I have a gallery of thumbnails which, when clicked, show up as full images in an attachment page. I would like these to instead be static images that act as links to my other pages. I would like each image thumb in this gallery to link to one of my other pages. Upon mouse-over / hover of those images I'd like the image thumb to turn grey (black with 30% transparency) and for the name of the page to show in the center of the thumb. Is this possible without adding a plugin?? Any tips would be gratefully received.

Thanks in advance,

Ally

I am using the most updated versions of both Atahualpa and WP.

Jam Jul 3, 2011 03:37 AM

Hi Ally, do you still want to do this. Answer is yes, you "can", my method might be different to others but I:


Quote:

Hi - I am using a combination of the built-in WP Gallery and Nextgen for my images. On my home page I have a gallery of thumbnails which, when clicked, show up as full images in an attachment page.
Remove the link from the image (we will add another link later), ie edit image details, remove URL link.

Quote:

I would like these to instead be static images that act as links to my other pages. I would like each image thumb in this gallery to link to one of my other pages.
Create the other pages, get the URL address/link, edit the image again and replace with new link (so now its linked to a page, not to the original image).

Quote:

Upon mouse-over / hover of those images I'd like the image thumb to turn grey (black with 30% transparency) and for the name of the page to show in the center of the thumb. Is this possible without adding a plugin??
You'll have to manually create the hover image. Make an identical copy of the image, make it greyscale (to get the grey effect), then make it RGB again, add the text and save it as the "imageON.jpg" or gif, png whatever.

Then use this snappy piece if code I use to create the mouseover for images.

Code:

<img title="Gallery One" onmouseover="this.src='http://www.domain.com/imageOn.png';" onmouseout="this.src='http://www.domain.com/imageOff.png';" src="http://www.domain.com/imageOff.png" alt="" width="75" height="75" />
Use your image names, your thumb size etc.


All times are GMT -6. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.