Log In · Register

 
image mapping in a div ?, help me please
ukrides
post May 25 2009, 01:35 PM
Post #1


Senior Member
***

Group: Member
Posts: 66
Joined: Aug 2007
Member No: 562,263



ok so i need to image map this ive done it in gimp but now ive inserted it into my div its not workign the pics shows up but no image map :(

heres my code i no its wrong somewhere just not sure where :(

CODE
<style>
.map {position:absolute; top:626px; margin-left:-400px; left:50%; width:000px; height:000px; z-index:2;}
</style>

<div class="map">

<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" />

<map name="map">

<area shape="rect" coords="23,324,234,348" href="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&amp;friendId=360757587" />
<area shape="rect" coords="23,356,247,384" href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&amp;friendID=360757587" />
<area shape="rect" coords="22,389,115,409" href="http://blogs.myspace.com/index.cfm?fuseaction=blog.ListAll&amp;friendId=360757587" />
</map>

</div>
 
 
Start new topic
Replies (1 - 7)
crafty-designs
post May 25 2009, 02:43 PM
Post #2


crafty. :]
**

Group: Official Designer
Posts: 16
Joined: Aug 2007
Member No: 562,092



Add
CODE
usemap="#map"
inside the image src code.
so it would be.
CODE
<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="#map" />

Hope that helps.
 
lizardkingfan
post May 25 2009, 02:49 PM
Post #3


Newbie
*

Group: Member
Posts: 1
Joined: May 2009
Member No: 729,775



how do you get your codes?
i'm new to cb and i'm trying to make a new layout but idk how to get the codes
can help me plz?
 
ukrides
post May 25 2009, 03:01 PM
Post #4


Senior Member
***

Group: Member
Posts: 66
Joined: Aug 2007
Member No: 562,263



QUOTE(lizardkingfan @ May 25 2009, 08:49 PM) *
how do you get your codes?
i'm new to cb and i'm trying to make a new layout but idk how to get the codes
can help me plz?

when u first start out just use a tutorials theres lots on here :D

QUOTE(crafty-designs @ May 25 2009, 08:43 PM) *
Add
CODE
usemap="#map"
inside the image src code.
so it would be.
CODE
<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="#map" />

Hope that helps.


still not working this is what i have as my code

CODE
<style>
.map {position:absolute; top:626px; margin-left:-400px; left:50%; width:000px; height:000px; z-index:2;}
</style>

<div class="map">

<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="map" />

<map name="map">

<area shape="rect" coords="23,324,234,348" href="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&amp;friendId=360757587" />
<area shape="rect" coords="23,356,247,384" href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&amp;friendID=360757587" />
<area shape="rect" coords="22,389,115,409" href="http://blogs.myspace.com/index.cfm?fuseaction=blog.ListAll&amp;friendId=360757587" />
</map>

</div>



this is my whole code :

CODE
<style>.a {hide search form} form {display:none;} table table table form {display:inline;} </style>

<style>
.contactTable {display: none;}
.orangetext15 {display: none;}
.whitetext12 {display: none;}
.nametext {display: none;}

table table div embed, table table div object {position:relative; z-index:9;}

table, tr, td{
background-color:transparent;
border-style:none;
}

body {
background-color:afa676;
background-image:url(http://i44.tinypic.com/epgf83.jpg);
background-position:top center;
background-repeat:repeat;
background-attachment: scroll;
margin-top:461px;
}



table table table table, table table table td{
background-image:none;
background-color:transparent;
}

body, div, p, strong, td, .text, .blacktext10, .blacktext12, a.searchlinkSmall, a.searchlinkSmall:link, a.searchlinkSmall:visited{
color:000000;
font-size:9pt;
line-height: 10pt;
font-weight:normal;
font-style:normal;
text-decoration:none;
text-transform:none;
font-family:Helvetica Narrow, sans-serif;
}

strong, .lightbluetext8, .btext, .redtext, .redbtext{
color:FF0000;
font-size:9pt;
font-weight:normal;
font-style:normal;
text-decoration:none;
text-transform:none;
font-family:Helvetica Narrow, sans-serif;
}

a font, a:link, a:visited, a.navbar, a.navbar:link, a.navbar:visited, a.man, a.man:link, a.man:visited, a.man font, a.redlink, a.redlink:visited{
color:000000;
font-size:9pt;
font-weight:normal;
font-style:normal;
text-decoration:none;
text-transform:none;
font-family:Helvetica Narrow, sans-serif;
}

a {
color: 000000 !important;
font-family: Arial !important;
}

a:hover {
color: 666666 !important;
font-family: Arial !important;
}

a:hover, a:hover font, a:active, a.navbar:hover, a.navbar:active, a.man:hover, a.man:active, a.man:hover font, a.searchlinkSmall:hover, a.searchlinkSmall:active, a.redlink:hover, a.redlink:hover{
color:0000FF;
font-size:9pt;
font-weight:normal;
font-style:normal;
text-decoration:normal;
text-transform:none;
font-family:Helvetica Narrow, sans-serif;
}

table table table table, div table table table{
border-style:none;
}

</style>



<style>
.masthead {position:absolute; top:0px; margin-left:-400px; left:50%; width:000px; height:000px; z-index:2;}
</style>

<div class="masthead">
<img src="http://i39.tinypic.com/17vjp2.jpg" />



</div>
<style>
.profileWidth table { margin-bottom:20px; width:800px; }
.rail { display:none; }
.gap {
background:url() top left no-repeat;
width:800px; height:897px;
position:absolute; top:0; left:50%;
margin:0px 0 -400px -690px;
</style>

<div class="gap"></div>


<style>
.map {position:absolute; top:626px; margin-left:-400px; left:50%; width:000px; height:000px; z-index:2;}
</style>

<div class="map">

<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="map" />

<map name="map">

<area shape="rect" coords="23,324,234,348" href="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&amp;friendId=360757587" />
<area shape="rect" coords="23,356,247,384" href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&amp;friendID=360757587" />
<area shape="rect" coords="22,389,115,409" href="http://blogs.myspace.com/index.cfm?fuseaction=blog.ListAll&amp;friendId=360757587" />
</map>

</div>
Reason for edit: Please use [codebox] tags instead of [code] tags when posting longer codes. - Mike
 
crafty-designs
post May 25 2009, 06:52 PM
Post #5


crafty. :]
**

Group: Official Designer
Posts: 16
Joined: Aug 2007
Member No: 562,092



QUOTE(ukrides @ May 25 2009, 12:02 PM) *
still not working this is what i have as my code

CODE
<style>
.map {position:absolute; top:626px; margin-left:-400px; left:50%; width:000px; height:000px; z-index:2;}
</style>

<div class="map">

<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="map" />

<map name="map">

<area shape="rect" coords="23,324,234,348" href="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&amp;friendId=360757587" />
<area shape="rect" coords="23,356,247,384" href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&amp;friendID=360757587" />
<area shape="rect" coords="22,389,115,409" href="http://blogs.myspace.com/index.cfm?fuseaction=blog.ListAll&amp;friendId=360757587" />
</map>

</div>



It's not working because you didn't include the # symbol in usemap.
It's really important to include to for it to work.
So every time you need to add a # inside usemap parameters.
CODE
<img src="http://i39.tinypic.com/6rpqc9.png" width="801" height="498" border="0" usemap="#map" />

Has to be exactly like that.
 
schizo
post May 25 2009, 10:56 PM
Post #6


Senior Member
******

Group: Staff Alumni
Posts: 2,435
Joined: Feb 2007
Member No: 506,205



Please try not to double post ukrides.

Is this for a band page or a regular myspace? As far as I know, image maps don't work on band pages at all because they delete all the #s in your code.
 
ukrides
post May 26 2009, 11:16 AM
Post #7


Senior Member
***

Group: Member
Posts: 66
Joined: Aug 2007
Member No: 562,263



QUOTE(schizo @ May 26 2009, 04:56 AM) *
Please try not to double post ukrides.

Is this for a band page or a regular myspace? As far as I know, image maps don't work on band pages at all because they delete all the #s in your code.


yeh its band page how do i do it instead ?
 
Mickey
post Jun 28 2009, 06:20 PM
Post #8


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Topic closed & moved.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: