Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help Joining image's

    Hey, im new to this and i need some expert advice i have my images and have made a side bar so far with the rollover Technique i had to slice the images and lay it out under each other but they do not meet to complete the effected image.

    my question is what is the coding i am missing to do such a thing.

    here it is so far.


    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <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[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    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[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    </head>

    <body onload="MM_preloadImages('Menu_Bar_03.jpg','Menu_Bar_05.jpg','Menu_Bar_06.jpg','Menu_Bar_07.jpg','Me nu_Bar_08.jpg')">
    <p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Rentals','','Menu_Bar_03.jpg',1)"><img src="Menu_Bar1_03.jpg" name="Rentals" width="287" height="98" border="0" id="Rentals" />
    </a></p>
    <p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Sales','','Menu_Bar_05.jpg',1)"><img src="Menu_Bar1_05.jpg" name="Sales" width="287" height="65" border="0" id="Sales" /></a></p>
    <p align="left"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Online Quote','','Menu_Bar_06.jpg',1)"><img src="Menu_Bar1_06.jpg" name="Online Quote" width="287" height="58" border="0" id="Online Quote" /></a></p>
    <p align="left"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('About','','Menu_Bar_07.jpg',1)"><img src="Menu_Bar1_07.jpg" name="About" width="287" height="61" border="0" id="About" /></a></p>
    <p align="left"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact Us','','Menu_Bar_08.jpg',1)"><img src="Menu_Bar1_08.jpg" name="Contact Us" width="287" height="103" border="0" id="Contact Us" /></a></p>
    </body>

    </html>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I'd recommend you to check http://www.cssplay.co.uk/menus/, there are a lot of CSS based nice menus.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •