Webring code on page

He has: 490 posts

Joined: May 2005

Does anyone know of another way, of putting a ring code on a page. Other than a Textarea box. Do not even go to a 40 mile long Javascript, I don't want that!.

A text area box will not vilidate with HTML in it. Mad I have searched the web over, and cannot find another way. Confused

dk01's picture

He has: 516 posts

Joined: Mar 2002

Wrap your code with

?

He has: 490 posts

Joined: May 2005

Well actually it's a banner code, but all amounts to the same thing=html.

 made it worse, caused it to find even more tags it did not like. I have also tried , not allowed in html 4.01.

Everybody I checked does it the same way I did, but all have parser errors also. There should be some clean way of adding code to your page, to keep it from being active. Or sort of like read only.  :( 
dk01's picture

He has: 516 posts

Joined: Mar 2002

Any way to post a link to the page. Its hard to diagnose without the code.

Busy's picture

He has: 6,151 posts

Joined: May 2001

You could just use a forms input field:

Or just display the code onthe page blah blah blah

A textarea with text in it should validate, can be done in xhtml so should be done in html, some code might be the go

He has: 490 posts

Joined: May 2005

Steve's Blue Ridge Snaps - Nature and Landscape Photography.

Ok; this is what it looks like. If it is not in the textarea it goes hot, and downloads the banner to the page. That I don't want. But this way it produces parser errors, because you are not suppsed to have html in a textarea, but it works! and is the way everybody does it.

But there should be a way to do the same thing, without parser errors. Besides I don't think the web police should make decisions about something that works, just because they don't personally like it. The way I see it, if it was not correct, it would not work. Mad

dk01's picture

He has: 516 posts

Joined: Mar 2002

Can you use php? If so just do this:

<?php
echo('<textarea name=\"banner_code\" rows=3 cols=65>');
echo(
htmlentities('<center><a href=\"http://blueridgesnaps.50webs.com/\"><img src=\"http://img.photobucket.com/albums/v116/steve40/BRS_Banner.jpg\" border=\"0\" alt=\"Steve\'s Blue Ridge Snaps - Nature and Landscape Photography.\"></a></center>'));
echo(
'</textarea>');
?>

He has: 490 posts

Joined: May 2005

Not on my providers server, no php. This is like being between a rock, and a hard place. I am about wore out with this validating stuff anyway. I think I will block out everybody that does not run IE, an let it go at that. Mad

dk01's picture

He has: 516 posts

Joined: Mar 2002

Wait... why don't you just change < to < and > to > ?? That will cause it to validate and display properly.

dk01's picture

He has: 516 posts

Joined: Mar 2002

If you use this it will display correctly:

<textarea name="banner_code" rows=3 cols=65>&lt;center&gt;&lt;a href="http://blueridgesnaps.50webs.com/"&gt;&lt;img src="http://img.photobucket.com/albums/v116/steve40/BRS_Banner.jpg" border="0" alt="Steve's Blue Ridge Snaps - Nature and Landscape Photography."&gt;&lt;/a&gt;&lt;/center&gt;</textarea>'

He has: 490 posts

Joined: May 2005

Well there was no problem with it displaying, it just would not validate. But now it does. I use those little sign language thingys for commas, and dashes all the time. But I never thought about it.

I noticed just as soon as I copied it to the page the blue on the href went out, so I thought --- yea it might validate but will it work. So I copied it to a temp html page, and pop there was the banner. The little sign thingys made it appear as text on the page, so the WDG police couldn't catch it.

Many Thanks ... Steve O.

PS. I knew there was a way to do it. Smiling

dk01's picture

He has: 516 posts

Joined: Mar 2002

Good to hear Steve. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.