38 users online (0 members and 38 guests)  


  Results 1 to 5 of 5

Related

  1. how to stop javascript via another javascript    Forum: Javascript Forum
    Replies: 0
  2. Replies: 5
  3. Help targetting inline frame from a DHTML menu    Forum: Website Scripts Forum
    Replies: 1
  4. Other scripts Dhtml / java script    Forum: Javascript Forum
    Replies: 13
  1. #1
    sine's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Posts
    2

    Need help with JavaScript(or issit DHTML?)

    Hie there people...i'm a newbie at web designing..

    What i need to find out is:

    How do i make a line-through a text link when it has already been visited? I tried the below script but it did not work..instead,everything became line-through,no matter what state it is in..

    <style type="text/css">

    a:link{
    font-family:verdana;
    font-size:11px;
    color:black;
    text-decoration:none}

    a:active{
    font-family:verdana;
    font-size:11px;
    color:black;
    text-decoration:none}

    a:visited{
    font-family:verdana;
    font-size:11px;
    color:black;
    text-decoration:line-through}

    a:hover{
    font-family:verdana;
    font-size:11px;
    color:#479DD9;
    text-decoration:line-through}
    .innertable {
    border: 1px solid #000000;
    background-color: #E1E1E1;
    }

    </style>

    I was wondering if any other scripts could do this properly..JavaScript or DHTML maybe?Would appreciate if anyone can help me on this...Thanks in advance,people..

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    your code above works fine, just tried it.

    Do you have a link to the rest of the page? Maybe there is other stuff over-riding the values above.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440
    Is the page online or local? I had a similar problem way back when. Turned out that it was because the page was still local rather than posted, so of course every link showed up as being visited. Big DUH to me. Had to clear out my cache, history, .temp files, etc. to simulate visiting the site for the first time. Or just trust that it will work.
    Could your problem be similar?

  4. #4
    sine's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Posts
    2
    Rrrright....i think both of you are correct....i tested it while the site on my local pc, and not online..a big duhh to myself then

    Anyways, thanks for both your help...much appreciated..
    Note to self: Inspect the problem from the most basic level

  5. #5
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Talking

    I think Sherlock Holmes said it best:
    In solving a problem of this sort, the grand thing is to be able to reason backwards. That is a very useful accomplishment, and a very easy one, but people do not practise it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically. Improbable as it is, all other explanations are more improbable still.
    From

    http://www.calibercomics.com/SHERLOCK/sherlock_holmes_quote_detection.htm .



Tags for this Thread