SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a question related to calling external JS files.

    I have the following code in a .JS file:

    document.writeln('<a href=\"http://www.education.com\" TARGET=\"_BLANK\" TITLE=\"For an online directory of distance graduate programs, click here!\"> Click here!</a>');

    It works perfectly...

    I would like to add a mouseover command to it, i.e.:
    onMouseOver="window.status='Click here now to visit Education.com!';return true" OnMouseOut="window.status='';return true"


    I've used the correct slashes in the right places. However, it doesn't work; probably because I'm trying to place Javascript within Javascript.

    How can I place the onMouseOver command in the code at the top of this page?

    Thank you very much
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    document.writeln("<a href=\"http://www.education.com\" target=\"_blank\" title=\"For an online directory of distance graduate programs, click here!\" onMouseover=\"window.status='Click here now to visit Education.com!';return true\" onMouseout=\"window.status='';return true\"
    > Click here!</a>");

  3. #3
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank-you Anarchos! Thank works brilliantly
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  4. #4
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problemo =)


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
  •