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!!
lawtz04
Posts: 585 Forumite
in Techie Stuff
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 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.
0
Comments
-
Post the HTML when possible and i'll have a look for you
R.I.P Dad. I will never forget you xxx0 -
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.0 -
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.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
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