We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Website Rollover Images help!!

Hi guys

I need a bit of help on my website. I have created my website a little while about (through the method of designing it as an image, slicing it in photoshop and saving as web html.

I managed (with some hassle!) to include rollover images for the links. Now I have come back to it after doing nothing for a few months as I needed to change the address on the contact page. I had to redesign the page, slice again and then re-do the rollover images etc. But for some reason the rollover images at the bottom of the page (BRANDING, MARKETING, WEBSITES, PORTFOLIO) don't appear when you hover the mouse above them.

I copied and pasted the html from the other pages so it should be fine but i just cant work it out. The links work but the images dont appear (they are meant to go white - see the other pages).

Can anyone suggest what may be wrong?! I can post the html when I get home if useful.

The site is (hope im allowed to post this!) lawtzdesign.com and go to contacts page.
I've just started entering the competitions (July 07). When I win I'll update this signature. Look on the bright side, I shouldn't have to update it very often.

Comments

  • dg1dd1ngs_2
    dg1dd1ngs_2 Posts: 127 Forumite
    Post the HTML when possible and i'll have a look for you :)
    R.I.P Dad. I will never forget you xxx
  • chunter
    chunter Posts: 2,038
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Forumite
    There's a batch of javascript missing. Your'e calling javascript routines that don't exist.
    (Eg M_swapImgRestore() ).

    Dreamweaver adds the Javascript to the page automatically when you create rollovers through it.
  • milesoneill
    milesoneill Posts: 138 Forumite
    If you open a "working" page on your website and go to VIEW - PAGE SOURCE you'll get your HTML.
    Do this again for your contact page and you'll see that (as chunter says) there's javascript missing:

    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->


    </script>

    Add this to your contacts page as per the other pages and it'll work.
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 355.8K Banking & Borrowing
  • 254.9K Reduce Debt & Boost Income
  • 456.2K Spending & Discounts
  • 248.3K Work, Benefits & Business
  • 605.9K Mortgages, Homes & Bills
  • 179K Life & Family
  • 263.7K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.