49 users online (1 members and 48 guests)  


  Results 1 to 5 of 5

Related

  1. What do you understand by 3-way link?    Forum: Search Engine Optimization - SEO - Forum
    Replies: 7
  2. Replies: 0
  3. Code Help.    Forum: Myspace Forum
    Replies: 0
  4. Ignore code and link greeting note code    Forum: HTML Forum
    Replies: 3
  5. I don't understand CSS    Forum: CSS Forum
    Replies: 1
  1. #1
    buzzbee's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2003
    Location
    Bracknell, UK
    Posts
    3

    Please help me understand this mousover code

    I have a website, but am looking to change the look of it. I am looking at a free template I like, but there is a piece of code I don't understand. I can see what it does, but not how it does it. I wonder if someone could try to help me make sense of it, so that I can use it properly in the future.
    An example of the piece of code is...
    "a HREF="products.htm" onmouseover="tabOn("3")" onmouseout="tabOff("3")"
    This anchor is round a GIF and whenever the mouse is over the GIF, it highlights the GIF. The page has a CCS style sheet which includes an atribute for A Hover. I presume that this is in some way linked, but am not sure.
    The main thing that confuses me is the tabOn("3&quot') and subsequent tabOff.
    Whether it makes a difference or not, I don't know, but the next GIF uses "4&quot and the next uses "5&quot etc, but I suspect this probably makes no difference.
    The company who provide the template use this same command on the menu of the main page of their own sie at http://www.easyimaging.net/ so this might give you a better idea of what I mean

    Any help would be much appreciated
    thanks[CODE]

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    tabOn and tabOff will be JavaScript functions.

    Have a look in the page (or in an include file, like javascript.js ) looking for

    Code:
    function tabOn(variableName) {
    code code...
    }
    It will all be in there.
    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
    buzzbee's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2003
    Location
    Bracknell, UK
    Posts
    3
    Spot on - It's in the head.
    Downside is that Javascript is all foreign to me. ((

    Thanks for your help - Certainly appreciated.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    no prob. If you want a javascript primer this is pretty good -

    http://www.w3schools.org/js
    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?

  5. #5
    buzzbee's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2003
    Location
    Bracknell, UK
    Posts
    3
    Thanks Dean
    I'll have a little read through. I've seen a couple of JS tutorials and got a general gist of it, but never really understood it.
    Looking through the function involved in the page I am using, it looks pretty basic. I've worked out what it is doing, though am not totally confident with the syntax of it, but I think I will be able to work with it, which is the main thing.

    Once again, thanks for your help, and I will take your advice and have a look through that tutorial



Tags for this Thread