Specifying a class

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dunnma
Beginner
Beginner
Posts: 2
Joined: Wed Aug 29, 2007 8:25 pm

Specifying a class

Post by dunnma »

I am using jQuery and Thickbox. One of my links in the menu is a thickbox link. The only thing that is different about this link vs other links on the page/in the menu system is that you HAVE to specify in the link a class of "thickbox"

So in other words how do I get this to be a link in the Milonic menu?

<a href="link" class="thickbox">Click Me</a>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You can actually make that particular item type=html; and then just put the link in it as you would normally. Try this, though I don't know anything about thickbox.

Code: Select all

aI("text=<a href='link' class='thickbox'>Click Me</a>;type=html;"); 
Ruth
dunnma
Beginner
Beginner
Posts: 2
Joined: Wed Aug 29, 2007 8:25 pm

Post by dunnma »

Sweet! That did the trick...now may I ask how I can possibly style this link the same as the rest (since it is manually created)?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Well, if you give me what your data file is I'll see what I can figure out for the style. Since you have class=thickbox you can't very well put another class in it, so I'd have to see your existing style for the other items to see what I can do.

Ruth
Post Reply