Log in

View Full Version : Quick HTML Help Easy I'm Sure


mindhunter77
09-17-2008, 05:31 PM
I'm trying to display an embed code for people to copy and paste so they can display my images elsewhere. The problem is for some reason I can not get it to hyperlink the image back to my site.

This is what I have that works but I would really like the image to be hyperlinked back to my forum

<div align="right"><strong>Embed Code:</strong> </div>
</div></td>
<td class="alt2"><div align="center"><span class="smallfont normal">
<input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]'/>" size="25" READONLY>
</span></div>

Lynne
09-17-2008, 06:48 PM
What did you try for getting it to link back to your site? Normally you would just use the <a> tag, so something like
<a href="http://www.yoursite.com"><img src="whatever" /></a>

mindhunter77
09-17-2008, 06:52 PM
Strange thing is I tried that but it actually phrased the image inside the post rather then display that text lol

Lynne
09-17-2008, 08:55 PM
Maybe you should try to use special characters (http://www.pageresource.com/html/speclist.htm) in the link, ie. &lt;a href="http://www.yoursite.com"&gt; and on and on.

mindhunter77
09-17-2008, 09:02 PM
ah ok, let me look into that

mindhunter77
09-18-2008, 10:44 PM
Can anyone help me on this I'm still stuck.

I'm just trying to get my url linked to the image on that embed code.

Lynne
09-18-2008, 11:00 PM
You should post exactly what you have tried so we don't suggest trying it again.

mindhunter77
09-18-2008, 11:44 PM
Tried this and it didn't work

&lt;a href="http://www.documentingreality.com/" target="_blank"&gt;&lt;img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]' border="0"/&gt;&lt;/a&gt;

Lynne
09-19-2008, 02:16 AM
That's not the whole line though. Also, if you are using double quotes to surround the value, then you can't use double quotes inside the value. You have to use either single quotes or you need to escape your double quotes. So, it would help if when writing out your code, you write out the entire line so we can check it for syntax.

mindhunter77
09-19-2008, 05:11 PM
That's not the whole line though. Also, if you are using double quotes to surround the value, then you can't use double quotes inside the value.

Thank You, that was it.