Oct
30
30
deathbychorusandverse asked:
Ive seen this on a wordpress template i cant find anymore but their was some javascript that allowed you to css an images alt/title attribute so when the little box pops up, its fits your theme.
Sphere: Related ContentIve seen this on a wordpress template i cant find anymore but their was some javascript that allowed you to css an images alt/title attribute so when the little box pops up, its fits your theme.
Know where i can find some title/alt scripts? maybe something that pops them up faster and stylizes them?
Tags: Alt, Css, Decorate, Images, Popup, Scripts, Wordpress Template












October 30th, 2008 at 11:33 pm
Your best bet is to simply use a hidden that contains your alt text. This is then shown when the OnMouseOver event is triggered. You simply need a Javascript function that handles the OnMouseOver event, and takes a string parameter containing what would be your title/alt text. The can already be formatted, or you can simply set the innerHTML text property with the string passed to the function.
Add A Comment