Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 13, 2007, 01:40 PM   #1
MacPanda
macrumors regular
 
Join Date: Oct 2006
Making a web badge

hey folks just making a page and wanted to make a web badge basically an image that points the person to my web page and my friends can put on their site but i am not sure how to do that i really just want to supply the image as a link integrated inside it so they can simply embedd it in . thanks here is the image below. all help appreciated.

MacPanda is offline   Reply With Quote
Old Jun 13, 2007, 01:49 PM   #2
Dimwhit
macrumors 65816
 
Dimwhit's Avatar
 
Join Date: Apr 2007
Never mind. didn't work.
Dimwhit is online now   Reply With Quote
Old Jun 13, 2007, 02:06 PM   #3
MacPanda
Thread Starter
macrumors regular
 
Join Date: Oct 2006
all help appreciated thanks
MacPanda is offline   Reply With Quote
Old Jun 13, 2007, 02:09 PM   #4
yagran
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
what i dont understand what you want?

HTML Code:
<a href="http://yoursite.com" target="_blank"><img src="http://yoursite.com/yourimage.jpg" border="0"></a>
thats the code to have a linked image in HTMl, is that what you where after?
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver

Last edited by yagran : Jun 13, 2007 at 05:44 PM.
yagran is offline   Reply With Quote
Old Jun 13, 2007, 02:17 PM   #5
snickelfritz
macrumors 65816
 
Join Date: Oct 2003
Location: Tucson AZ
You might try creating a Flash movie with the URL embedded in it.
Maybe one the Flash experts here could talk you through the process.
__________________
2.4ghz 24" iMac (Aluminum); 4GB RAM; 320GB HDD; 250GB external G-Drive; 10.5.7; Adobe CS3.
snickelfritz is offline   Reply With Quote
Old Jun 13, 2007, 02:25 PM   #6
yagran
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
Quote:
Originally Posted by snickelfritz View Post
You might try creating a Flash movie with the URL embedded in it.
Maybe one the Flash experts here could talk you through the process.
no need for flash here, the simple code above is sufficient. if you want basic animation in the 'badge' i would reccomend just using an animated gif format.
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver
yagran is offline   Reply With Quote
Old Jun 13, 2007, 05:15 PM   #7
tominated
macrumors 68000
 
tominated's Avatar
 
Join Date: Jul 2006
Location: Queensland, Australia
Quote:
Originally Posted by yagran View Post
what i dont understand what you want?

HTML Code:
<a href="http://yoursite.com" target="_blank"><img src="http://yoursite.com/yourimage.jpg"></a>
thats the code to have a linked image in HTMl, is that what you where after?
Even better :
css
Code:
#badge {
   display: block;
   width: widthinpixelspx;
   height: heightinpixelspx;
   background: url(path/to/image.png);
}
html
Code:
<a href="yourlink" id="badge" rel="external" title="pagename"></a>
__________________
20" iMac Core Duo
13" 2.26Ghz MBP
Upgraded to 4GB RAM & 500GB HDD
tominated is offline   Reply With Quote
Old Jun 13, 2007, 05:43 PM   #8
yagran
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
Quote:
Originally Posted by tominated View Post
Even better :
css
Code:
#badge {
   display: block;
   width: widthinpixelspx;
   height: heightinpixelspx;
   background: url(path/to/image.png);
}
html
Code:
<a href="yourlink" id="badge" rel="external" title="pagename"></a>
sorry but how is this better in any way? he wants to distribute it to friends for links on their site, so the shortest amount of code is the BEST solution surely. your method adds nothing
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver
yagran is offline   Reply With Quote
Old Jun 13, 2007, 05:51 PM   #9
MacPanda
Thread Starter
macrumors regular
 
Join Date: Oct 2006
hey folks thanks for your replies and help - what i am trying to do is give people an image that they can put on their website and when a person clicks on that image it takes them to my little page. Thanks for the html code but i don't know how to link it to the image - when i wanted to make a link on something i would just use a hot selection in dreamweaver to put over the image and that would do it - do i supply the code and the image separately? i am a little bit lost. thanks once again for your help guys.
MacPanda is offline   Reply With Quote
Old Jun 13, 2007, 06:23 PM   #10
Dimwhit
macrumors 65816
 
Dimwhit's Avatar
 
Join Date: Apr 2007
Quote:
Originally Posted by MacPanda View Post
hey folks thanks for your replies and help - what i am trying to do is give people an image that they can put on their website and when a person clicks on that image it takes them to my little page. Thanks for the html code but i don't know how to link it to the image - when i wanted to make a link on something i would just use a hot selection in dreamweaver to put over the image and that would do it - do i supply the code and the image separately? i am a little bit lost. thanks once again for your help guys.
MacPanda, linking to an image is basically the same, regardless. The code in Dreamweaver to link to an image will be:

Code:
<img src="image path here">
That's all we're doing. The path will depend on where your image is. Currently, it's:

Code:
<img src="http://farm2.static.flickr.com/1215/544280569_d2b001b9d2_o.gif">
Ideally, you want to upload the image and make the link something like:

Code:
<img src="http://www.flowoflava.com/images/imagename.gif">
Then, all you need is the code so that when you click on it, it takes people to your site. It works like any other link you make in Dreamweaver. The final code is like yagran posted:

Code:
<a href="http://www.flowoflava.com" target="_blank"><img src="http://www.flowoflava.com/images/imagename.gif" border="0"></a>
Not sure that helps, but there you go.
Dimwhit is online now   Reply With Quote
Old Jun 13, 2007, 06:33 PM   #11
dcv
macrumors 601
 
Join Date: May 2005
Take a look at the way Apple or the W3C do theirs
__________________
.
dcv is offline   Reply With Quote
Old Jun 13, 2007, 06:43 PM   #12
MacPanda
Thread Starter
macrumors regular
 
Join Date: Oct 2006
thanks folks i think i worked it out - what i will do is put the image on my webspace and send people the line of code to add to their page - thanks so much for your help - i am not great a coding stuff wish i was. thanks once again tho ...
MacPanda is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:01 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC