Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts

    Placing a called function in a seperate cell

    I have created functions which will be called with a mouseover event. The thing I need help is what code is required to place that called function into a seperate cell of a table.

    Thanks a lot for your help

  • #2
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Can't you attatch onclick to the table cell like <td onclick= your unction()>your content </td>

  • #3
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    So what your saying is place the onmouseover event that is calling the function, and place that right into the <td> tag?

    example:
    Code:
    <td>
    //main navigation bar content w/onmouseover events
    </td>
    <td onmouseover="navbar(menu1)">
    //sub navigation bar content that occurs from mouseover event in main nav bar
    </td>
    I hope that is what your meaning
    Thanks a lot for the help

  • #4
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yes but what does your function do? Does it affect the cell the function is in?

  • #5
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    What the function does is call a series of buttons that lay horizontally just below the main navigation bar in a seperate cell. It may help if you see the function code itself

    Code:
    function educationnav ( ) {
    str = '<a href=""><img src="alliedwhite.src" onmouseover="alliedblue.src" onmouseout="alliedwhite.src" alt="Allied Schools" hspace="1" vspace="1">';
    str += '<a href=""><img src="dvdwhite.src" onmouseover="dvdblue.src" onmouseout="dvdwhite.src" alt="DVDs" hspace="1" vspace="1">';
    str += '<a href=""><img src="bookwhite.src" onmouseover="bookblue.src" onmouseout="bookwhite.src" alt="Books" hspace="1" vspace="1">';
    }
    I realize that the function is calling a bunch of HTML but I couldnt think of an easier way to create buttons w/mouseover events.
    So basically its just a horizontal pull down menu is all im creating

    Thanks a lot for the help

  • #6
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    Something else I am having trouble figuring out is how to classify three seperate functions to be placed in the same cell and only call that particular function when its mouseover event occurs.

    I appreciate any help in the matter

  • #7
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    well what does your function do. also you can call a functions with the same event or another one.

    like one function mouseover, another mouseclick or mouseover" function();function() "

    I think you might want to look that up though


  •  

    Posting Permissions

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