SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have two questions concerning a site I'm working on. Maybe someone here can help me:
    1. onMouseOver and onMouseOut (white to red) in navagation bar work fine in Explorer, but remain white in Netscape. Got any ideas how this can be corrected?
    2. My date & time at the bottom shows the seconds working in Explorer, but not in Netscape. I copied this from Dynamic Drive site. I don't really need the seconds to show, but when I delete the "seconds" part of the code, the entire date & time disappear.
    Below is the code, thanks for any help on this:

    <HTML>
    <head>
    <title>FLASHPOINTPM</title>
    <META name="description" content="Critical Project Management Rescue Services.">
    <META name="keywords" content="place list of words here">
    </head>

    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="100%">
    <tr>
    <td bgcolor="#000000" width="20%"><img src="FP1_black.gif" align="left" alt="flashpointpm logo" width="200" Height="36">
    </td>
    <td width="20%" align="center"><font face="Arial" size="-1"><a href="index.html" STYLE="text-decoration:none"><font color="#FFFFFF"
    onMouseOver="this.style.color = '#FF0000'"
    onMouseOut="this.style.color = '#FFFFFF'">home</font></a>
    </td>
    <td width="20%" align="center"><font face="Arial" SIZE="-1"><a href="about.html" STYLE="text-decoration:none"><font color="#FFFFFF"
    onMouseOver="this.style.color = '#FF0000'"
    onMouseOut="this.style.color = '#FFFFFF'">about us</font></a>
    </td>
    <td width="20%" align="center"><font face="Arial" SIZE="-1"><a href="services.html" STYLE="text-decoration:none"><font color="#FFFFFF"
    onMouseOver="this.style.color = '#FF0000'"
    onMouseOut="this.style.color = '#FFFFFF'">services</font></a>
    </td>
    <td width="20%" align="center"><font face="Arial" SIZE="-1"><a href="contact.html" STYLE="text-decoration:none"><font color="#FFFFFF"
    onMouseOver="this.style.color = '#FF0000'"
    onMouseOut="this.style.color = '#FFFFFF'">contact us</FONT></A>
    </td>
    </tr>
    </table>
    <br><br>
    <body onLoad="goforit()" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td align="center" bgcolor="#ffffff">
    <table align="center" border=0 cellpadding=0 cellspacing=0>
    <tr align="center">
    <td width="220" align="left"><FONT FACE="Arial" size="-1"><b>Critical Project Going Under?</b></td>
    <td><img src="rescue.jpg" ALT="Critical Project Rescue" width="250" height="319"></td>
    <td width="220" align="center"><font face="Arial" size="-1"><b>FlashPoint To The Rescue!</b></font>
    </td>
    </tr>
    </table>
    <br><br><br>
    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00" width="100%">
    <tr>
    <td align="center" bgcolor="#FFCC00" height="125" valign="center">
    <table align="center" border=0 cellpadding=0 cellspacing=0>
    <tr align="center">
    <td width="100%" align="center"><font face="Arial" size="-1" font color="#333333">"Even if you're on the right track, you'll get run over if you just sit there." -Will Rogers
    <br><br><br>
    <script>
    var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

    function getthedate(){
    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000)
    year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
    daym="0"+daym
    var hours=mydate.getHours()
    var minutes=mydate.getMinutes()
    var seconds=mydate.getSeconds()
    var dn="AM"
    if (hours>=12)
    dn="PM"
    if (hours>12){
    hours=hours-12
    }
    if (hours==0)
    hours=12
    if (minutes<=9)
    minutes="0"+minutes
    if (seconds<=9)
    seconds="0"+seconds
    //change font size here
    var cdate="<small><font color='333333' face='Arial' size='-2'>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
    +"</font></small>"
    if (document.all)
    document.all.clock.innerHTML=cdate
    else
    document.write(cdate)
    }
    if (!document.all)
    getthedate()
    function goforit(){
    if (document.all)
    setInterval("getthedate()",1000)
    }

    </script>
    <span id="clock"></span>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    </td>
    </tr>
    </table>

    </body>
    </HTML>


  2. #2
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll TRY to enlighten you.

    Events onMouseOver and onMouseOut in any tags are things that work only with IE. I think they work in Netscape, but not on every tag. And it's the first time that i see these events in a <font> tag... Since they take a lot of place in your code because of their repetitions, you'd better set some stylesheet, if you know how to do stylesheets.

    I'm a dumbass when it comes to Javascript, but i think the increase of the variable "minutes" depends on the value of the variable "seconds", so when you kill the seconds, you kill the script at its base.


    Finally, i think this time&date script is totally useless, since it displays the time&date of the visitor, and this time&date are still shown on the Windows & Mac status bar... (i don't know about Linux, but i think it works the same there too)
    There are better uses of the bottom bar...
    [blogger: zengun] [blogware contributor: wordpress]

  3. #3
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    onMouseOver and onMouseOut work in <a> tags in netscape

    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  4. #4
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I've bookmarked your site, hoping it will teach me how.

  5. #5
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey, i didn't notice that you had two <body> tags in your source !
    [blogger: zengun] [blogware contributor: wordpress]

  6. #6
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Shin Ma - Yep, I first created this site using frames. When I copied everything over into a new folder I noticed that extra <body> tag too. Now here's the strange part (strange only because I am so new): when I remove that second <body> tag my tables do not go 100% across the page. I put that <body> tag back in and - voila! Got any ideas to why that is?

  7. #7
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW - I took your advise and got rid of the time clock. You're right. What was the point. I guess I just want some "movement" to that page.


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
  •