ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • Due to ongoing maintenance work some features and functions (including Dark mode!) may be unavailable or visually appear differently.
  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

javascripty people.. text over image..

Car  306 TD Slut
Howdy.

Been playing with getting some text to appear over images when hovering over them with the mouse, using JS.

The way i was doing was pretty complex, just wondered if anyone had any JS or knew where i could get some from.

I have a box 119px x 119px with an image inside. when you hover the mouse over the image i want text to appear over the image. kind of like the large image here

thanks homies.
 
right click on the page and click 'view source'!!!!

The bits you should be interested in...
line 15: onLoad="document.getElementById('a').style.filter = 'alpha(opacity: 90)'; document.getElementById('a').style.opacity = '.9'; document.getElementById('a').style.MozOpacity = '.9';"

line 64: onMouseOver="document.getElementById('a').style.visibility = 'visible';" onMouseOut="document.getElementById('a').style.visibility = 'hidden';"
 
Back
Top