Problems with an image...

  1. #1
    loveland is offline Junior Member

    Problems with an image...

    I just posted a new banner onto my site.

    When you first visit the site it doesnt show on the homepage, but when you access the homepage through a link from another page on the site it is then there. Any suggestions?

    Also, anyone know how to create a link that when it is clicked it adds my site to the users favourite list?

    Thanks


  2. #2
    DJNafey is offline UK site moderator
    This could be nothing to do with it but I know that, when I used to update my web site quite regularly, I often used to confuse myself by mixing up Index.htm, index.htm, index.html, etc.

    If you're typing in the web page address directly into the IE address bar, maybe you're typing in the address of a page that you haven't actually updated?

    Unlikely but worth double-checking.

  3. #3
    DJDK is offline Senior Member
    <FORM>
    <INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href , document.title);'>
    </FORM>

    ........... or ..................


    <A HREF=": Add to my favorites folder"
    ONDRAGSTART="return false"
    ONCLICK='window.external.AddFavorite(location.href , document.title);
    return false'>
    Add to my Favorites
    </A>



    to add to favourites, remember to change the variants, (in the brackets) for your site. post your site address and ill have a look
    Last edited by DJDK; 06-12-2004 at 12:00 AM. Reason: thaught of another code

  4. #4
    loveland is offline Junior Member
    I renamed the image and updated again and it seemed to sort itself out.
    Thanks for the help.

    With the add to favourites thing what needs to go in the 'location.href' spot?
    Is it the name of the page?
    Presumably 'title.href' is what you want to set the title to be in their favourites ... si?
    Do they remain as .href or change to .html?

    Thanks

    (Rather not post my URL as it really is appalling).

  5. #5
    DJDK is offline Senior Member
    Save 20% on AVG Internet Security 2012 Suite!
    your url needs to go there. for example i would change:

    location.href

    to

    http://www.djdk.tk

    i do not have this feature on the site, but i will in the future. i have tested the code and it does work.

+ Reply to Thread