SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2003
    Location
    uk
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What is this class in Web site menu code?

    Hi, could you please help me decipher this Web site menu code?

    Code:
    <td><a href="http://www.mysite.com" class="menulink" class=&{ns4class};>Click here</a></td>


    I understand that I have to look in the style sheet for the class called "menulink", and this is ok, but what is the "ns4class"? I didn't find that listed in the style sheet.

    Thanks for your help,

    May

  2. #2
    SitePoint Zealot Shap's Avatar
    Join Date
    Jan 2002
    Location
    Phoenix
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure, but I believe it is the programs what of finding the CSS on your computer.?.?

  3. #3
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <td><a href="http://www.mysite.com" class="menulink" class=&{ns4class};>Click here</a></td>
    If you're seeing that in a browser's "view source", then there's some sort of server-side error. Where are you seeing this?

  4. #4
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure, but I don't think it is well supported any more.

    From the Netscape Javascript Guide:

    Using JavaScript Expressions as HTML Attribute Values

    Using JavaScript entities, you can specify a JavaScript expression as the value of an HTML attribute.

    ...

    You may already be familiar with HTML character entities by which you can define characters with special numerical codes or names by preceding the name with an ampersand (&) and terminating it with a semicolon (;).

    ...

    JavaScript entities also start with an ampersand (&) and end with a semicolon (;). Instead of a name or number, you use a JavaScript expression enclosed in curly braces {}. You can use JavaScript entities only where an HTML attribute value would normally go. For example, ...

    Code:
    <HR WIDTH="&{barWidth};%" ALIGN="LEFT">


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
  •