Welcome to WebmasterWorld Guest from 107.20.104.161

Forum Moderators: open

Message Too Old, No Replies

Menu

     

jbhavin

9:27 am on Aug 28, 2003 (gmt 0)

10+ Year Member



hi,

When i have several links and i click on one of the hyprelink, it opens in a new page and i want that link to change it colour and should not a a link text anymore. and the rest o the link menu is same.

how do i do

jbhavin

9:33 am on Aug 28, 2003 (gmt 0)

10+ Year Member



here i mean, the page i am in, that menu link shld be in clicked state.

any help

MonkeeSage

10:13 am on Aug 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello jbhavin:

If I understand you something like this should do the trick...

<script type="text/javascript">
<!--
function toText(link) {
var s = document.createElement("span");
s.innerHTML = link.innerHTML;
s.style.color = "red";
link.parentNode.replaceChild(s, link);
}
//-->
</script>

<a href="blah.htm" onclick="toText(this); return false;">Blah</a>

Jordan

jbhavin

10:57 am on Aug 28, 2003 (gmt 0)

10+ Year Member



hey thankx Jordan but see the problem has to be bit modified

say i have link

About us (ALL ARE H LINKS)
abc
def

now i click About Us, it takes me to new page

where linkare same
ABout us
abc
def
now here, "About us" should not be a hyper and shld have diff colour

 

Featured Threads

Hot Threads This Week

Hot Threads This Month