SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rollover script works but no navigation text

    Hi...I'm working on a website and am having trouble figuring out where I can add/edit the text for the navigation buttons, HOME, ABOUT, CONTACT, etc. There is a rollover.js file and the rollover effect works fine, I just can't figure out where to put the text for the navigation buttons and after a week of trying different things I thought I'd come here and try to get it working. My meager JS knowledge isn't enough. I started this website from a template in case you're wondering.

    Here's some of the code starting with where the images are preloaded then a few lines farther on are the onmouseover and onmouseouts.

    <body id="page_1" onload="MM_preloadImages('images/bt_2_sel.jpg','images/bt_3_sel.jpg','images/bt_4_sel.jpg','images/bt_5_sel.jpg')">

    <div class="main">
    <!--==========header=========== -->
    <div id="header">
    <div class="logo"><h1>DesignStudio</h1></div>
    <div class="menu"><img src="images/bt_1_sel.jpg" alt="" width="133" height="53" /><a href="options.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/bt_2_sel.jpg',1)"><img src="images/bt_2.jpg" title="options" alt="" width="158" height="53" id="Image2" /></a><a href="port.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/bt_3_sel.jpg',1)"><img src="images/bt_3.jpg" alt="" width="164" height="53" id="Image3" /></a><a href="about.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/bt_4_sel.jpg',1)"><img src="images/bt_4.jpg" alt="" width="151" height="53" id="Image4" /></a><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/bt_5_sel.jpg',1)"><img src="images/bt_5.jpg" alt="" width="163" height="53" id="Image5" /></a></div>
    </div>
    <!--========//header=========== -->

    Are the mousseovers DHTML and not js I assumed they were js and were connected by the external rollover.js file. If anyone can look at this and point me in the right direction I would appreciate it.

  2. #2
    SitePoint Member
    Join Date
    Nov 2009
    Location
    North Carolina
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there text showing up for the "buttons" now or is it blank? It might you need to edit the image files for each button (i.e. bt_1_sel.jpg, bt_2_sel.jpg) and add the text to the images which are being swapped out or it might be you need to edit the template to overlay the text on top of the image. I'm guessing it's the images you need to edit.
    If I have been of help to you please consider making a
    donation for my time via PayPal here.
    Get a GREAT domain for under $20 each day via my
    STEAL of the DAY page.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi tacodomains...thanks for the quick reply. Yes the "buttons" are blank now. Yes editing the images, adding the text to each one is pretty obvious now that you mention it. That's probably what the author of the template intended the user of it to do. I was so caught up in making it work by adding the text that I missed the obvious. The old saying "Couldn't see the tree because of the forest".....lol. Anyway that should be the end of this problem, thank you again.


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
  •