View Full Version : link us button

02-05-2005, 07:10 PM
hi i have my own little button and i want to be able to say link us and give a html code for it. the button is placed www.powarfun.com/powar.jpg the image i wud like is tht. thankls for ure help. :thumbsup:

02-05-2005, 07:22 PM
<textarea name=fd rows=4 cols=40><a href="www.powarfun.com"><img border=0 src="www.powarfun.com/powar.jpg"></a></textarea>

02-05-2005, 07:23 PM
its just standard html...with a bit of Unicode

<div style="Add styles here">Link to us!</div>
<img src="www.powarfun.com/powar.jpg" alt="Powarfun">
&lt;a href="powarfun.com"&gt;&lt;img src="www.powarfun.com/powar.jpg" alt="Powarfun"&gt;&lt;/a&gt;

dump all that in your html...

&lt; is for <
&gt; is for >

If you don't want to sstyle the "link to us" part you could just dump the <div> and add a <br> at the end.

This allows the browser to not actually render the html code and just display it as plain text. any questions?

Dmitry, you didn't close your <a> tag, used textarea randomly, and you can't use img inside textarea according to HTML specs

02-05-2005, 07:30 PM
Thants not what i mean...go ahead and put it in notepad and save it as htm and u will c what i mean

In your situation there will be an ugly border around the image...border="0" is needed

02-05-2005, 07:48 PM
fine but thats a style choice not a 'how to code this' choice.

You can just add to your css to set it universally for all images enclosed in links:
a img {border: none}

He knows how to code a link with an image inside, thats easy. He wants to display the code on his site for other webmasters to copy and paste...which is what i showed him. You shouldn't be using textarea, its a form element.you could style it with <div style="overflow: scroll">**text**</div>..but you have to use lt; and gt;

02-05-2005, 08:00 PM
Yes it does but have u seen his site?
He has a text area there where he wants his code to be

<textarea name="textarea" cols="17" rows="5">
&lt;a href="http://powarfun.com"&gt; &lt;img border=0 src="http://powarfun.com/powar.jpg" width="128" height="50"&gt;&lt;/a&gt;</textarea>


02-06-2005, 12:11 PM
cheers everyone for helpng me :thumbsup: