Author |
Topic |
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 15 March 2008 : 22:04:40
|
Ok I have a problem I have a javascript statement like this
Rollupanddown('topNav',"> Services > "+id,50,"slide",92,20,1);//,"roll");
Now in this part I need turn services into a link. Anyone know how I can do this within the javascript? |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 16 March 2008 : 09:02:47
|
Rollupanddown("topNav","> <a href=\"URI\">Services</a> > "+id,50,"slide",92,20,1) |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
Edited by - Shaggy on 16 March 2008 09:03:42 |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 16 March 2008 : 11:51:35
|
Thanks Shaggy it didn't work I will be more descriptive if anyone could help out I would really aprpeciate it. I will explain in further detail.
I have a page located here: glacier.makeityourweb.com
Now when you click on the link like services then click on the of the sub links at the bottom of the page like Identity then in the breadcrumb at the top it displays something like:
Home > Services > Identity
Where Home and Services need to be a link to those divs and Identity is highlighted text. If you view the source for the page all the code is there. I am completely lost on what I need to do from here.
This is the function to display the text:
function changelink(id) function SlideTopNavDownUp(id,newtext)
I am just at a lost and have no idea how to do this one feature if I can figure this out the site is done I just need it done now
Thanks anyone who can help. |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 16 March 2008 : 15:17:21
|
I apologize this is the function that is needing the change. I tried the fix and now I get a expected indentifier error now.
function changetext(id,newtext,linkid) { var obj = document.getElementById(id); obj.firstChild.nodeValue = newtext; if(id == 'home') obj.firstChild.nodeValue = ""; else if(linkid == 'Portfolio' || linkid == 'Services') obj.firstChild.nodeValue = (<a href="\javascript:TopNavEffect('linkid','linkid','');"\>linkid</a>+' > '+ newtext); else obj.firstChild.nodeValue = newtext; } |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 16 March 2008 : 17:24:33
|
Nevermind I got it. Thanks all.
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 18 March 2008 : 05:28:20
|
Good stuff
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 18 March 2008 : 17:22:04
|
Thanks took a while but worked it out in the end. |
|
|
|
Topic |
|
|
|