Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
Error on JavaScript Snippet with HTML Text Links
Results 1 to 2 of 2

Thread: Error on JavaScript Snippet with HTML Text Links

  1. #1
    Junior Registered
    Join Date
    Aug 2004
    Posts
    2

    Error on JavaScript Snippet with HTML Text Links

    I'm trying to use a bit of JS code to enhance an HTML text link menu. What I want to do is make the entire table cell clickable for a HTML link. My code is like this:
    HTML Code:
    <TD colspan="4" background="http://lib1.store.vip.sc5.yahoo.com/lib/elevatorbooks/butt1back.gif"
    	  align="right" onclick="window.location.href='index.html';"><A
    		HREF="index.html" class="NavBlue">HOME</A></TD>
    This works great to make the entire cell clickable, but if Script error checking is turned on in IE, it pops an error saying "Undetermined Script Constant". I've tried every way I can think of to format this. Nothing helps. Any ideas would be greatly appreciated.

  2. #2
    Junior Registered
    Join Date
    Aug 2004
    Posts
    2
    On further examination, it looks as if it may not be that snip of code. I have that same code in other pages that are behaving just fine. IE's error checker is barking about the first line that has that code, but I'm thinking it may be an interaction between something else that sets IE looking for a terminator in that string. The URL is http://www.elevatorbooks.com/. Would be very grateful if anyone could point me to what's going on.

Similar Threads

  1. Script to turn all links into javascript or redirects
    By Westech in forum Website Programming & Databases
    Replies: 5
    Last Post: 10-20-2014, 04:34 PM
  2. Being picky with anchor text in links
    By Kyle in forum Search Engine Optimization
    Replies: 3
    Last Post: 07-10-2004, 06:46 AM
  3. Multiple links and link text
    By r2d2 in forum Search Engine Optimization
    Replies: 2
    Last Post: 02-17-2004, 07:40 PM
  4. Javascript Links
    By Mike in forum HTML, CSS, Layout, and Design
    Replies: 19
    Last Post: 12-25-2003, 09:34 AM
  5. E-mailing html pages (not links or attachments)
    By Kenny L in forum HTML, CSS, Layout, and Design
    Replies: 2
    Last Post: 08-24-2003, 02:55 PM

Bookmarks

Posting Permissions

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