Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Image Ready Rollovers In frontpage

  1. #1
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Ready Rollovers In frontpage

    Hi I can't get these rollovers to work for me. I use FrontPage and I have placed the the rollovers HERE

    THE PROBLEM IS THAT THE ROLLOVERS work there but when I use them as included content on my hompage they doesn't work. They don't rollover or anything.

    I hope Somebody Can help me. I have tried to post this in other forums but Have had no replies

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Might just be frontpage being weird.
    You're using an adobe product then a microsoft product... they may be conflicting.

    You're using frontpage to include them? You could try php includes, perhaps. They might work better than what frontpage does to your scripts.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Any suggestions

    Yeah I actually had a feeling that, that was what was wrong, but i hoped that i could get around it with the use of some code.

    But can any of you guys recommend another program. I'm not very good at HTML so anything were i can work in design mode like frontpage would be good. I have heard about Dreamweaver and Adobe GoLive but never used em, you think my image rollovers would work there.

    And what would you recommend and if any whihch og them is closet to frontpage.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    But can any of you guys recommend another program.
    Vim.
    I'm not very good at HTML
    Learn. It's hardly rocket science.
    so anything were i can work in design mode like frontpage would be good.
    WYSIWYG editors are flawed in concept, and it really requires human pattern-detection and understanding of content to understand how and where to use which tags.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Certainly if you are going to use WYSIWYG, don't use two from different companies, or at least not one from Microsoft and another from something else.

    Dreamweaver and Fireworks are supposted to be integrated.... though I don't like fireworks too much.

    Image Ready and Dreamweaver have worked well for me in the past.

    In the end, though, learning HTML is the right route. Immediately, try DW.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi Guys... when I looked at the page it seemed a hell of a lot of code for something seemingly very simple.

    I reproduced the same effect (in FrontPage(very easy)) with the following code:
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    <script language="JavaScript">
    <!--
    function FP_swapImg() {//v1.0
    var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
    n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
    elm.$src=elm.src; elm.src=args[n+1]; } }
    }

    function FP_preloadImgs() {//v1.0
    var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
    for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
    }

    function FP_getObjectByID(id,o) {//v1.0
    var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
    else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
    if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
    for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
    f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
    for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
    return null;
    }

    function FP_swapImgRestore() {//v1.0
    var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
    var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } }
    doc.$imgSwaps=null; }
    }

    function FP_goToURL(url) {//v1.0
    window.location=url;
    }
    // -->
    </script>
    </head>

    <body onload="FP_preloadImgs(/*url*/'images/home-down.gif', /*url*/'images/home_over.gif')">

    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
    <tr>
    <td width="113">
    <img border="0" src="images/home_normal.gif" width="113" height="21" id="img1" style="cursor:hand; cursorointer" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/home_over.gif')" onclick="FP_goToURL(/*href*/'index.htm')" onmousedown="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/home-down.gif')"></td>
    <td>&nbsp;</td>
    </tr>
    </table>

    </body>

    </html>
    And it works 100%... all you are doing is swapping the image and on click swapping again and going to another url.... does not sound like a big deal unless I've missed the point as usual....
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  7. #7
    Join Date
    Jun 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks BUT

    I always appreciate when people reply to my posts. But if you read my post it says that the page you were editing were working fine. The problem was when I went on to include the rollovers on my homepage. Then they don't work.

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Again, frontpage is bad. It is almost surely stripping something when it includes one page in the other.
    As such, do it by hand, use another program, etc.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It does, it strips everything except the contents of the body tag.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Oh, well that's absolutely the issue then.

    Conclusion: don't use front page
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •