Need a little html help please

20 replies
Hi Fellow Warriors,

I cannot seem to figure this out so I figured who better to ask then warrior gurus.

I have a website: http://corporatevalues.com/

Two questions:

1 - You will notice that there appears to be a "v" on the drop down menu navigation which I think may be an arrow indicating more below. How do I get rid of it without compromising the drop down menus

2 - You will notice at the top right of the screen today's date is displayed but it is not properly displaying as there is an extra 1 and 20 for the year. How do I add the 20 in front of the year and get rid of the 1?

Any help and direction is greatly appreciated.

Thanks so much,
Kim
#html
  • Profile picture of the author Michael Mayo
    Hi Kim,

    I can't see anything wrong with your page.

    What you described doesn't seem to show up when I visit the page???

    Maybe try refreshing your browser and view it again.

    Have a Great Day!
    Michael
    {{ DiscussionBoard.errors[530979].message }}
  • Profile picture of the author KimBeckers
    ahh, it only appears to be happening in firefox now not IE? weird, any ideas
    {{ DiscussionBoard.errors[530986].message }}
  • Profile picture of the author Eric Stanley
    Try editing your CSS by removing this code from your chromestyle2.css:

    Code:
    #chromemenu ul li a[onMouseover]:after{ /*HTML to indicate drop down link*/
    content: " v";
    /*content: " " url(downimage.gif); /*uncomment this line to use an image instead*/
    }
    Signature
    {{ DiscussionBoard.errors[530992].message }}
  • Profile picture of the author KimBeckers
    awesome, thanks, any ideas on the date issue?
    {{ DiscussionBoard.errors[531009].message }}
  • Profile picture of the author Eric Stanley
    Sure thing.

    Insert before </head>:

    Code:
    <SCRIPT language=JavaScript>
    function makeArray(n) {
    this.length = n
    return this
    }
    monthNames = new makeArray(12)
    monthNames[1] = "January"
    monthNames[2] = "February"
    monthNames[3] = "March"
    monthNames[4] = "April"
    monthNames[5] = "May"
    monthNames[6] = "June"
    monthNames[7] = "July"
    monthNames[8] = "August"
    monthNames[9] = "September"
    monthNames[10] = "October"
    monthNames[11] = "November"
    monthNames[12] = "December"
    function dateString(oneDate) {
    var theMonth = monthNames[oneDate.getMonth() + 1]
    var theYear = oneDate.getFullYear()
    return theMonth + " " + oneDate.getDate() + ", " + theYear
    }
    //-->
    </SCRIPT>
    Then insert the code below where you want the date to display:

    Code:
    <script language="JavaScript" type="text/javascript">document.write(dateString(new Date()))</script>
    Signature
    {{ DiscussionBoard.errors[531014].message }}
  • {{ DiscussionBoard.errors[531052].message }}
  • Profile picture of the author KimBeckers
    Yes, very strange, it shows up properly in IE but not in Firefox, go figure
    {{ DiscussionBoard.errors[531063].message }}
  • Profile picture of the author Sam Rodrigo
    Ok, so note that the array is returning numerical values while it should display names of months. I think you need to test other code to display date.

    EDIT: sorry, my bad... It is displaying month. Just not adding up year correctly.

    IMHO, Sam.
    Signature
    RICH SAGE BLOG

    LOCAL AFFILIATE GOLD MINE:
    >> CLICK: BiiG NETWORK LAUNCH WSO
    <<
    SIGN UP FREE. LIMITED NICHES/LOCATIONS!
    {{ DiscussionBoard.errors[531174].message }}
  • Profile picture of the author KimBeckers
    Not sure I follow you.
    {{ DiscussionBoard.errors[531201].message }}
  • Profile picture of the author Sam Rodrigo
    Ok, at <td bgcolor="#295d94" height="10" width="14%">
    the above code, can you give it more room to display the date?

    Can adjust 14% to about 20% and see.

    If the array code is correct, then this could be an issue.

    Sam
    Signature
    RICH SAGE BLOG

    LOCAL AFFILIATE GOLD MINE:
    >> CLICK: BiiG NETWORK LAUNCH WSO
    <<
    SIGN UP FREE. LIMITED NICHES/LOCATIONS!
    {{ DiscussionBoard.errors[531205].message }}
  • Profile picture of the author KimBeckers
    ahh, that makes sense, I will give it a try :-)
    {{ DiscussionBoard.errors[531211].message }}
  • {{ DiscussionBoard.errors[531227].message }}
  • Profile picture of the author Sam Rodrigo
    Code grab from CHROME browser:

    <!-- Hide this script from old browsers --
    // Store current date into year, month, day variables
    var date = new Date();
    var day = date.getDate();
    var month = date.getMonth()+1 ;
    var year = date.getYear();
    // Determine month name from month number
    if(month==1) Month="January";
    if(month==2) Month="February";
    if(month==3) Month="March";
    if(month==4) Month="April";
    if(month==5) Month="May";
    if(month==6) Month="June";
    if(month==7) Month="July";
    if(month==8) Month="August";
    if(month==9) Month="September";
    if(month==10) Month="October";
    if(month==11) Month="November";
    if(month==12) Month="December";
    // Write current date to variable DayDateTime.
    var DayDateTime=(Month + " " + day + ", " + year);
    // Displays variable DayDateTime.
    document.write(DayDateTime);
    // -- End hiding here -->


    What's with the "==" -- Eric above has other code.

    Make sure you are not inserting weird stuff cutting and pasting.

    Sam
    Signature
    RICH SAGE BLOG

    LOCAL AFFILIATE GOLD MINE:
    >> CLICK: BiiG NETWORK LAUNCH WSO
    <<
    SIGN UP FREE. LIMITED NICHES/LOCATIONS!
    {{ DiscussionBoard.errors[531246].message }}
  • Profile picture of the author KimBeckers
    hmm, I am not sure, I did not create the page, someone asked me to help them fix it so I am not sure why it is there
    {{ DiscussionBoard.errors[531263].message }}
  • Profile picture of the author Sam Rodrigo
    Kim,

    My suggestion is that you compare this code to the original, and if you don't spot a problem, find other code to display date -code compatible with many browsers. Just about any blog software is displaying a date, so, you can try something like that.

    Ok, the Sage needs to rest.
    Success,
    Sam
    Signature
    RICH SAGE BLOG

    LOCAL AFFILIATE GOLD MINE:
    >> CLICK: BiiG NETWORK LAUNCH WSO
    <<
    SIGN UP FREE. LIMITED NICHES/LOCATIONS!
    {{ DiscussionBoard.errors[531287].message }}
  • Profile picture of the author KimBeckers
    Thanks, I will give it a try.

    Kim
    {{ DiscussionBoard.errors[531297].message }}
  • Profile picture of the author staxx
    Kim Heres your solution for the date.

    change this line: var year = date.getYear();

    To this: var year = date.getUTCFullYear();

    Checked it out and it works. Did not see the arow problem you were talking about.


    Good Luck, Philip
    {{ DiscussionBoard.errors[531301].message }}
  • Profile picture of the author KimBeckers
    That did the trick :-) Thanks everyone for your help. All issues have been resolved.
    {{ DiscussionBoard.errors[531695].message }}
    • Profile picture of the author staxx
      Glad to help Kim. Let me know if you run into any other troubles.
      {{ DiscussionBoard.errors[531722].message }}

Trending Topics