Help - Search - Members - Calendar
Full Version: Html Help
BleepingComputer.com > Internet & Networking > Web Site Development
   
RyanH15
I'm sorry if this is not in the right section, but I'm not sure what this belongs in.

I'm trying to allow people to copy and paste an html code, but I don't know how to get the program I use to read the code as plain text, rather than html

<a href="http://www.picksandstixx.com/drumdaybga" target="_blank"><img src="http://i8.photobucket.com/albums/a30/picksandstixx/largelink.jpg" border="0" alt="COME JOIN DRUM DAY BGA"></a>

that's the code

please help
Noot
Try using <XML></XML> before and after the coding. So:

<XML><a href="http://www.picksandstixx.com/drumdaybga" target="_blank"><img src="http://i8.photobucket.com/albums/a30/picksandstixx/largelink.jpg" border="0" alt="COME JOIN DRUM DAY BGA"></a></XML>

You can also use:

To display a simple link as code: &lt;a href=&quot;http://www.simplelink.com&quot;&gt;Here&lt;/a&gt;

Would show as : <a href="http://www.simplelink.com">Here</a>

Which is easy, as this site: http://www.felgall.com/htmlt47.htm will help you. Just copy and paste the code you want people to copy and paste in the first white box, hit convert and then copy and paste what appears in the second box into your site.

So, whichever will be easier or more useful to your needs.

Good luck! smile.gif
Andrew
This should do it.

CODE
&lt;a href=&quot;http://www.picksandstixx.com/drumdaybga&quot;  
target=&quot;_blank&quot;&gt;&lt;img  src=&quot;http://i8.photobucket.com/albums/a30/picksandstixx/largelink.jpg&quot;  
border=&quot;0&quot; alt=&quot;COME JOIN DRUM DAY BGA&quot;&gt;&lt;/a&gt;


Note: The above HTML is on three lines here but you should put it all on one line in your code.
RyanH15
Thanks guys. It worked like a charm. Now I need one last bit of help. When you go to my website (www.picksandstixx.com/drumdaybga and all pages related to it), you click on a link and it opens in a new window. What could I do to change that?
Noot
That is really easy. You just have to tell it to open within itself, rather than in another page. It's all where you have the a href code.

So, this is what you see:

<a href="http://www.sample.com" target="_blank">Sample</a>

You need to change _blank to _self.

I hope this helps! smile.gif
Andrew
Or, you can put <base target="_self"> in the header and save a few bits of space:

CODE
<head>
<base target="_self">
</head>


But make sure to also delete all the target="_blank" references in your links thumbup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.