homepage Welcome to WebmasterWorld Guest from 174.129.103.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How to apply MOUSEOVER effect to a SHORTCODE
apply HTML to a SHORTCODE [gallery.....]
giowalentini




msg:4492334
 3:08 pm on Sep 7, 2012 (gmt 0)

Hi,
I'm Giovanni,
I would like to apply a mouseover effect to display the name of the person at each THUMBNAIL , made by WORDPRES (but I would like to keep the same viewing of the gallery in Fancybox overlay).
My problem is that the grid in the homepage of my website is not generated by individual images on which I could apply the mouseover, but from this shortcode [gallery include = lightbox-61,71,80,87,94,100,108,112,116,121,128,135,139,145,152,159,177,182,186,193,202,222] generated by the plugin GALLERY LIGHTBOX MANAGER, so I do not know how to apply the HTML code for the mouseover to each ID of the shortcode.
I know a bit of HTML and CSS, but nothing about PHP.
Can you advise me what to do?
thanks
Giovanni

[edited by: eelixduppy at 8:41 pm (utc) on Sep 8, 2012]
[edit reason] removed personal links [/edit]

 

coopster




msg:4493749
 12:49 pm on Sep 11, 2012 (gmt 0)

Welcome to WebmasterWorld, Giovanni.

mouseover effects are going to be client-side (JavaScript) rather than server-side code (PHP). You should be able to view the page source after the page has loaded in your web browser and you can code up the mouseover effect you desire based on the rendered HTML code. Unless we are missing something ... ?

rlange




msg:4493965
 8:42 pm on Sep 11, 2012 (gmt 0)

This could be done with PHP, but from what I understand of WordPress shortcodes so far, you'd basically need to reimplement the shortcode with your own PHP code which would then insert the necessary HTML and/or JavaScript call.

In my opinion you'd be better off using something like jQuery to attach a mouseover or hover event to the individual thumbnails. Getting the name of the person to display will probably be an issue, though.

--
Ryan

giowalentini




msg:4494258
 11:48 am on Sep 12, 2012 (gmt 0)

Thanks Ryan for your answer.
About your suggestion, how can I attach a mouseover or hover event to the individual thumbnails if the only element that i can see is the ID of the SHORTCODE [gallery include = lightbox-61,71,80...}?
Or you mean that is better to remove that plugin (wich generate the shortcode) an find another solution to display the thumbnails of the gallery?

Giovanni

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved