Jquery - Hover event add span to hyperlink

  • GodsDead
  • Born
  • Born
  • GodsDead
  • Posts: 1

Post 3+ Months Ago

Hey all, i have a problem with some navigation, i recently migrated a design to Drupal, and came across the fact i couldn't edit the main navigation html, which sucked, the help i got was to use jquery to fix this, here ill show you what im trying to achieve:
http://oaklore.co.uk/ When you hover the main navigation it pops out.

http://oaklore.co.uk/drupal/ I need to add the <span> attribute when hovering over each of the links, and removing it when hover out.

How would i do this?

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

You'll need to either add the child node via the DOM or rebuild the innerHTML onMouseOver and Out.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.