0 Replies - 692 Views - Last Post: 14 July 2009 - 02:00 PM

#1 hobonzo   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-July 09

Trying to add javascript inside a css div tag

Post icon  Posted 14 July 2009 - 02:00 PM

I am trying to add a javascript magnifier tool, to a image that is linked off the home page. It wouldn't normally be a problem but the link is div tagged for a css style.
this is the functional code as it is (without the javascript tool)

				<a rel="facebox" href="photos/portfolio_01_full.jpg" class="button"><img src="graphics/button_view_screen.gif" alt="View Screenshot" /></a>

The DIV tag im trying to add to "portfolio_01_full.jpg" Is suppose to work like this... (if the image was not a link, and styled)
<img src="portfolio_01_full.jpg"  onmouseover="TJPzoom(this);">

Could someone please help me correctly insert this DIV tag into the "facebox" link?

Attached is the "How to" page on adding this to a image on a site its labeled "index.html",
Attached File  index.html (5.26K)
Number of downloads: 38

Is This A Good Question/Topic? 0
  • +

Page 1 of 1