Jquery - Hover event add span to hyperlink

  • GodsDead
  • Born
  • Born
  • No Avatar
  • Joined: May 28, 2009
  • Posts: 1
  • Status: Offline

Post May 28th, 2009, 11:45 am

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?

Cheers.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 28th, 2009, 11:45 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 28th, 2009, 1:52 pm

You'll need to either add the child node via the DOM or rebuild the innerHTML onMouseOver and Out.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 204 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.