WordPress.org

Ready to get started?Download WordPress

Forums

Image Map for body background (1 post)

  1. jrpontious
    Member
    Posted 1 year ago #

    Hello,

    I would like to install an image map as the background of a website I am working on,
    http://www.consciouscreativeworks.com/clients

    I know that wordpress does not play well with dreamweaver, but here is the code I created out of dreamweaver for the image map:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>seeds.gif</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">td img {display: block;}</style>
    <!--Fireworks CS5 Dreamweaver CS5 target. Created Fri Sep 14 11:04:56 GMT-0400 (EDT) 2012-->
    <script language="JavaScript1.2" type="text/javascript">
    <!--
    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];}
    }
    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];}}
    }
    
    //-->
    </script>
    </head>
    <body bgcolor="#ffffff" onload="MM_preloadImages('seeds_r2_c2_s2.gif','seeds_r2_c2_s1.gif');">
    <table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="1600">
    <!-- fwtable fwsrc="Untitled" fwpage="Page 1" fwbase="seeds.gif" fwstyle="Dreamweaver" fwdocid = "1199259907" fwnested="0" -->
    <tr>
    <td><img src="spacer.gif" width="940" height="1" border="0" alt="" /></td>
    <td><img src="spacer.gif" width="126" height="1" border="0" alt="" /></td>
    <td><img src="spacer.gif" width="534" height="1" border="0" alt="" /></td>
    <td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
    </tr>
    
    <tr>
    <td colspan="3"><img name="seeds_r1_c1_s1" src="seeds_r1_c1_s1.gif" width="1600" height="608" border="0" id="seeds_r1_c1_s1" alt="" /></td>
    <td><img src="spacer.gif" width="1" height="608" border="0" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2"><img name="seeds_r2_c1_s1" src="seeds_r2_c1_s1.gif" width="940" height="592" border="0" id="seeds_r2_c1_s1" alt="" /></td>
    <td><a href=";"><img name="seeds_r2_c2_s1" src="seeds_r2_c2_s1.gif" width="126" height="114" border="0" id="seeds_r2_c2_s1" usemap="#m_seeds_r2_c2_s1" alt="" /></a></td>
    <td rowspan="2"><img name="seeds_r2_c3_s1" src="seeds_r2_c3_s1.gif" width="534" height="592" border="0" id="seeds_r2_c3_s1" alt="" /></td>
    <td><img src="spacer.gif" width="1" height="114" border="0" alt="" /></td>
    </tr>
    <tr>
    <td><img name="seeds_r3_c2_s1" src="seeds_r3_c2_s1.gif" width="126" height="478" border="0" id="seeds_r3_c2_s1" alt="" /></td>
    <td><img src="spacer.gif" width="1" height="478" border="0" alt="" /></td>
    </tr>
    </table>
    <map name="m_seeds_r2_c2_s1" id="m_seeds_r2_c2_s1">
    <area shape="rect" coords="24,0,107,109" href="http://www.consciouscreativeworks.com/clients/photos1/" alt="" onmouseout="MM_swapImage('seeds_r2_c2_s1','','seeds_r2_c2_s1.gif',1);" onmouseover="MM_swapImage('seeds_r2_c2_s1','','seeds_r2_c2_s2.gif',1);" />
    </map>
    </body>
    </html>

    How might I go about inserting this in to the CSS?

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin. As it stands, your code has been permanently damaged/corrupted by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags