Board index PBase HTML and Style Sheets Help, This must be simple but it is driving me nuts!!!

HTML and Style Sheets

Help, This must be simple but it is driving me nuts!!!

Customize your galleries.
shawnkraus
 
Posts: 352

Help, This must be simple but it is driving me nuts!!!

Post Sun Nov 11, 2007 4:17 pm


I want people to be able to come to my site and copy text that will place an image and link to my site on their site. The problem is when I enter the following code it does not show up as text but the actual image and link.

Code: Select all
<a href="http://www.pbase.com/ShawnKraus"><img src="http://k43.pbase.com/t6/44/691744/4/73167702.ImgEHPlB.jpg" alt="Images hosted by Shawn Kraus"></a><br>images of ShawnKraus</a>


Can somebody please help me with this, I want it to show up as text that they can copy.

dang
 
Posts: 3780


Post Sun Nov 11, 2007 5:18 pm


Shawn,
I'd wondered about this too, but haven't come up with the proper solution. I'm sure it can be done, but without java I still haven't found the answer. Here's a section you might read, and hopefully the site explains another way of doing it which I'm missing.
http://www.w3schools.com/html/html_scripts.asp

alangrant
 
Posts: 861


Post Sun Nov 11, 2007 5:30 pm


Something along these lines should work:

Code: Select all
&lt;a href="http://www.pbase.com/ShawnKraus"&gt;&lt;img src="http://www.pbase.com/image/73167702/small.jpg"; alt="Images hosted by Shawn Kraus"&gt;&lt;/a&gt;&lt;br&gt;images of ShawnKraus&lt;/a&gt;


Using "&lt" and "&rt" tells the browser to display a "less than" or "greater than" rather than interpreting it as the start of a HTML tag.

I have also used the "official" syntax for creating a permanent direct link to an image - for this to work you will need to have direct linking enabled. The syntax in your example (referring to k43.pbase.com) links to a copy of the image on a specific server, which may turn out to be temporary.
Alan
Travel Photos - http://www.pbase.com/alangrant
Balkanology: Explore Southeast Europe - http://www.balkanology.com/

dang
 
Posts: 3780


Post Sun Nov 11, 2007 5:36 pm


Thanks, Alan!


Board index PBase HTML and Style Sheets Help, This must be simple but it is driving me nuts!!!

Who is online

Users browsing this forum: ClaudeBot and 1 guest