SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2000
    Location
    San Fransisco
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>&lt;a class="ql" href="setashome.htm" id="makehome"&gt;Set as your home page&lt;/a&gt;
    &lt;SCRIPT&gt;if(navigator.userAgent.indexOf("IE 5")&gt;-1 && navigator.platform.indexOf("Win16") == -1)
    makehome.outerHTML = "&lt;a href=index.htm class=ql onClick=\"this.style.behavior='url(#default#homepage)';
    this.setHomePage(location.href);
    \"&gt;Set as your home page&lt;/a&gt;"&lt;/SCRIPT&gt;
    [/code]

    I need to have the top code show the text, Set as home page, show up in white, size 8, verdana, and in bold. I tried to do this LOTS of time, but it just doesn’t work. Any help would be greatly appreciated.


    ------------------
    Ali Mousavi
    CarAudioClub.com

    [This message has been edited by jonese (edited May 13, 2000).]

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2000
    Location
    San Fransisco
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No luck… maybe I’m doing something wrong; do you see anything wrong with:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>&lt;font size="1" face="Verdana" color="#FFFFFF"&gt;&lt;b&gt;
    &lt;a class="ql" href="setashome.htm" id="makehome"&gt;Set as your home page&lt;/a&gt;
    &lt;SCRIPT&gt;if(navigator.userAgent.indexOf("IE 5")&gt;-1 && navigator.platform.indexOf("Win16") == -1) makehome.outerHTML = "&lt;a href=index.htm class=ql onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);\"&gt;Set as your home page&lt;/a&gt;"&lt;/SCRIPT&gt;
    &lt;/font&gt;[/code]

    BTW, Thanks a lot

  3. #3
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Add in your style sheet or add styles and include the following:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    .ql {
    color: white;
    font-family:Verdana;
    font-size:8pt;
    font-weight:bold;
    }
    [/code]

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

    [This message has been edited by wluke (edited May 14, 2000).]

  4. #4
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ali,

    Wayne suggested creating a style script (css); you are still trying HTML.

    If you want to use Wayne's suggestion, embed his code with the following:

    &lt;style type="text/css" &gt;
    ...put Wayne's code here...
    &lt;/style &gt;

    and then put it between your &lt;head&gt; tags.

    The html would then simply be:

    &lt;a class="q1" href="href="setashome.htm" id="makehome"&gt;Set as your home page&lt;/a&gt;


    BTW: if you have a &lt;b&gt;, you need a &lt;/b&gt;

    Vinny

    ------------------
    GrassBlade: cut&paste javascript

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2000
    Location
    San Fransisco
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It worked…thanks for your help

    ------------------
    Ali Mousavi
    CarAudioClub.com

  6. #6
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    You're welcome.

    Vinny


    ------------------
    GrassBlade: cut&paste javascript
    The JavaScript Place Forums

  7. #7
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sorry. I flubbed that one. Sometimes the answer seems so simple that one forgets to give all the details.

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com


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
  •