It shows that you are unregistered. Please register with us by clicking Here
Go Back   Blogring.net - The Premier Myspace & Xanga Community > Xanga Forums > Xanga Codes and Scripts

Xanga Codes and Scripts Here you can find all the resources needed to fully customize your xanga.

Reply
 
LinkBack Thread Tools Display Modes

Old 06-17-2005, 12:36 AM   #1 (permalink)
I got 1,500 posts!

 
krayziekid727 is offline
Join Date: Jan 2004
Location: Virginia
Posts: 7,384
krayziekid727
Points: 7,686.00
In this tutorial, I'm going to show how to image map with MS Paint. This is more work than having a program do it, but it's really not that tough. Keep in mind that this won't be the best tutorial because somewhere along the line, I lost my gift for explaining things.

First of all, an image map is coordinates used to define specific areas for each link on a single image. Yeah that probably didn't make sense, but basically an image map makes it so that a single image has multiple links. You've probably seen this in many layouts by now.

When you code an imagemap you must determine what shape you're going to use. This will make more sense once we get deeper into the tutorial..hopefully. There are three shape values you can use: "rect"(rectangle), "circle", or "poly"(polygon).

Out of all the layouts I've seen here at BR, the only shape I've seen used is "rect". And to be totally honest that's the only one I use to, though I have tried the others just for the hell of knowing how to =).

Rect
Alright, here we go. First open up the image you want to imagemap in MS Paint. I'll be using this one:

^You can save this image and follow along if you wish =). Actually, I highly recommend that you do.

Before doing anything else you have to make sure that you have "Status Bar" checked off at the top. At the top, View>>Status Bar(don't click it if it's already checked off).


The coordinates are displayed in the status bar, so you need for it to be displayed. For a rect shape you need only two coordinates: top left and bottom right or bottom left and top right.

So, take your cursor and place it over the top left of your first link. Then look to the
bottom right for the coordinates.


^I tried to get a bit of the color palette into the screenshot so you guys get the general idea of where the coordinates are located on the status bar. Record the coordinates you found for the top left corner.

Now find the coordinates for the bottom right corner and record them. Are you getting this so far?

Find the coordinates for the rest of your links, remember it's just the top left corner and the bottom right corner.

If you're using my image, this is what I have so far(top left, bottom right):
Home - 0,1,74,26
Blogring - 77,0,153,26
S&T - 154,1,229,26
Xanga - 228,0,304,26
Blogger - 306,0,389,26
Rachel - 393,0,483,26
You don't have to get the exact coordinates that I did. If yours are just a bit different than mine, that's perfectly fine. And if you did bottom left and top right or you're using your own image, your numbers are going to be totally different from mine =).

Well, now that the coordinates have been recorded it's time write up the HTML. Yay! ^_^

The map is contained between <map> </map> tags(creative huh?). When using the map tag you must also use the name attribute to specify a name for your map.
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><map name="your name here"></td></tr></table><div class='postcolor'>
Replace "your name here" with whatever you want to name your image map. It doesn't really matter. I will name my map cookie.
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><map name="cookie"></td></tr></table><div class='postcolor'>

Now it's time to specify the link areas! For this we use the area tag =P.
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><area shape="rect" coords="0,1,74,26" href="http://www.google.com"></td></tr></table><div class='postcolor'>
I used three attributes with this tag, all of which are necessary.
shape attribute - This attribute is used to specify the shape, remember? Rect, circle, or poly. Hopefully you guys know which one we're doing =P.
coords attribute - I think this is pretty obvious. You use this to assign your coordinate values.
href - You use this attribute to assign the link destination. Basically the value of this attribute is the URL of the webpage you want the hyperlink to bring the user to.

Repeat the area tag for as many links you have. Then when you're done, close your map with </map>.
Here's the code for my map:
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><map name="cookie">
<area shape="rect" coords="0,1,74,26" href="http://www.google.com">
<area shape="rect" coords="77,0,153,26" href="http://www.blogring.net">
<area shape="rect" coords="154,1,229,26" href="http://www.blogring.net/index.php?showforum=8">
<area shape="rect" coords="228,0,304,26" href="http://www.xanga.com">
<area shape="rect" coords="306,0,389,26" href="http://www.blogger.com">
<area shape="rect" coords="393,0,483,26" href="http://www.blogring.net/index.php?showuser=1052">
</map></td></tr></table><div class='postcolor'>

But wait! We're not done yet, though we're awfully close.

Upload your image to whatever image host you use. Then fill in with the correct stuff:
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><img src="URL OF YOUR IMAGE HERE" usemap="#your map name here" border="0"></td></tr></table><div class='postcolor'>
For usemap you fill in the name of your map. You remember, when you named your map? I named mine cookie. Mine would look like this:
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><img src="http://img252.echo.cx/img252/6446/navi1bq.gif" usemap="#cookie" border="0"></td></tr></table><div class='postcolor'>
It must be preceded by a # symbol.

Now we're done! Wasn't so hard right? I hope not and I hope I didn't confuse anyone.

Now put together my whole code looks like this:
</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>HTML </td></tr><tr><td id='CODE'><map name="cookie">
<area shape="rect" coords="0,1,74,26" href="http://www.google.com">
<area shape="rect" coords="77,0,153,26" href="http://www.blogring.net">
<area shape="rect" coords="154,1,229,26" href="http://www.blogring.net/index.php?showforum=8">
<area shape="rect" coords="228,0,304,26" href="http://www.xanga.com">
<area shape="rect" coords="306,0,389,26" href="http://www.blogger.com">
<area shape="rect" coords="393,0,483,26" href="http://www.blogring.net/index.php?showuser=1052">
</map>

<img src="http://img252.echo.cx/img252/6446/navi1bq.gif" usemap="#cookie" border="0"></td></tr></table><div class='postcolor'>

I hope you guys understood this =). If you need me to clarify on anything, just post or PM me. I think I will add "circle" and "poly" when I'm feeling more motivated.

[Only registered and activated users can see links. ]
  Reply With Quote
Sponsored Links

Old 06-17-2005, 12:41 AM   #2 (permalink)
I got 1,500 posts!

 
¬_¬'s Avatar
 
¬_¬ is offline
Join Date: Oct 2004
Location: New York
Posts: 2,632
¬_¬
Points: 2,741.00
huh. i was planning to do a tutorial on this. i've been image-mapping on paint for a while and had to make the code myself, and it's not that hard. anyway- excellent tutorial. good explanations ^_^
__________________
[Only registered and activated users can see links. ] < ze gallery.
http://img.photobucket.com/albums/v6...meinmotion.jpg
  Reply With Quote

Old 06-17-2005, 12:44 AM   #3 (permalink)
I got 1,500 posts!

 
krayziekid727 is offline
Join Date: Jan 2004
Location: Virginia
Posts: 7,384
krayziekid727
Points: 7,686.00
Yeah I know it's not hard, that's why I wanted to make this tutorial.

Anyway thanks, I was kind of worried that I didn't explain very clearly.

I'm going to add two more sections eventually =).
  Reply With Quote

Old 06-17-2005, 02:29 AM   #4 (permalink)
Senior Member
 
dismonkeysez is offline
Join Date: Sep 2004
Location: right behind you
Posts: 452
dismonkeysez
Points: 652.00
wow, great tutorial for people who dont have image ready!


--------------
Or for people who do not have their program handy for whatever reason =)
__________________
Your signature has been removed because it exceeded 500x200.

-Global moderator
  Reply With Quote

Old 06-18-2005, 06:14 AM   #5 (permalink)
I got 1,500 posts!

 
xYunaxFantasiesX's Avatar
 
xYunaxFantasiesX is offline
Join Date: Jul 2004
Posts: 2,933
xYunaxFantasiesX
Points: 3,348.00
Thanks I knew there were cordinates in MS paint but I never actually tried Image mapping with it thanks for the tu.
__________________

  Reply With Quote

Old 06-18-2005, 06:43 AM   #6 (permalink)
I got 1,500 posts!

 
cykia's Avatar
 
cykia is offline
Join Date: Mar 2005
Location: everywhere a moo-moo
Posts: 6,031
cykia is an unknown quantity at this point
Points: 6,372.00
Ahhh nice tutorial! Never knew I could do image map...
  Reply With Quote

Old 06-18-2005, 06:45 AM   #7 (permalink)
I got 1,500 posts!

 
fahntoang's Avatar
 
fahntoang is offline
Join Date: Dec 2003
Posts: 4,811
fahntoang
Points: 4,912.00
Rachel, very excellent tutorial. It made me laugh during some parts. hehe.

I did find a spelling error though. (I am a spelling nerd, so excuse me.)
Quote:
But wait! We're not done yet, though we're offly close
I believe that should be "awfully."

[:
__________________
resigned as support staff
http://i19.tinypic.com/4fttuki.jpg
  Reply With Quote

Old 06-18-2005, 06:47 AM   #8 (permalink)
I got 1,500 posts!

 
krayziekid727 is offline
Join Date: Jan 2004
Location: Virginia
Posts: 7,384
krayziekid727
Points: 7,686.00
Quote:
Originally posted by fahntoang@Jun 18, 12:45 AM
Rachel, very excellent tutorial. It made me laugh during some parts. hehe.

I did find a spelling error though. (I am a spelling nerd, so excuse me.)
Quote:
But wait! We're not done yet, though we're offly close
I believe that should be "awfully."

[:
lol hmm I didn't mean for it to be funny. Thanks.

And I knew I spelt it wrong because it looked funny! Then I just came to the conclusion that it was just a made up word.
  Reply With Quote

Old 06-18-2005, 07:01 PM   #9 (permalink)
Senior Member
 
-AiNoKeA- is offline
Join Date: Mar 2004
Location: Hawaii
Posts: 279
-AiNoKeA-
Points: 379.00
whoa. thx. i always wanted to try image mapping, but all the tutorials were for other programs.
__________________
Your signature has been removed because it exceeded 500x200.

-Global moderator
  Reply With Quote

Old 07-07-2005, 09:02 PM   #10 (permalink)
Member
 
Lauren_n_Luv is offline
Join Date: Dec 2004
Posts: 59
Lauren_n_Luv
Points: 159.00
Wink

thank you thank you thank you!!!!! :P im gonna try on another image now :P
__________________
http://img111.imageshack.us/img111/1451/madworld7yz.gif
pull up my sleeve and see......
[Only registered and activated users can see links. ]<---cLiCkIt...and...cLiCkIt--->[Only registered and activated users can see links. ]
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 04:38 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0