dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: html links don't work

  1. #1
    Join Date
    Jan 2008
    Posts
    42

    html links don't work in Javascript code

    Hi Everyone,

    I have a strange problem that I can't resolve.

    Have a look at www.snaptease.co.uk/random.html and you will see a random image every time you refresh.

    Now look at www.snaptease.co.uk/random1.html and you won't see the image. The only difference is in the js/random.js and js/random1.js each file references.

    js/random.js uses the same html link to index.html
    js/random1.js links to individual html files that exist and valid.

    Please tell me what I am doing wrong and how to fix it.

    I've been banging my head over this for a while now so I would appreciate any help.

    Thanks in advance

    Martin
    Last edited by martin_b14; 07-20-2010 at 06:46 PM. Reason: more descriptive

  2. #2
    Join Date
    Jun 2007
    Posts
    667
    From image 16 onwards, there's a missing ' after the filename.

    Also remove the <!-- --> comments from the script file, they're not needed.
    Last edited by Sterling Isfine; 07-20-2010 at 08:54 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles