Help Html

Afran

Part of the furniture
Joined
Oct 26, 2004
Messages
1,760
I want to paste the paypal logo/hyperlink onto a website and this is the code PayPal provides but it doesn't seem to work, after pasting all that shows is the code;

<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=40
400, height=350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->
 

Dukat

Resident Freddy
Joined
Jan 10, 2004
Messages
5,396
I want to paste the paypal logo/hyperlink onto a website and this is the code PayPal provides but it doesn't seem to work, after pasting all that shows is the code;

<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=40
400, height=350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

If the code is showing then you're possibly placing it in the wrong place.

What CMS do you use to add things to the site? Is there something you have to do to insert raw html?

I just tried that in notepad and saved it as a .html and it worked fine - the code itself isn't the problem I think, its how you're putting it in.
 

Aoami

I am a FH squatter
Joined
Dec 22, 2003
Messages
11,223
remove the comments <!--> etc then try again
 

Dukat

Resident Freddy
Joined
Jan 10, 2004
Messages
5,396
There's nothing wrong with that code though - its must be where he's putting it or something to do with the Content Management System.

Try it - copy and paste the code into notepad, save it as a .html file and open it: the logo displays without any problems at all.

The fact the code is showing as plaintext shows that its not a html error, if it was html you'd have a red X rather than code being displayed in most cases.

It has to be a problem somewhere else :)
 

Bahumat

FH is my second home
Joined
Jun 22, 2004
Messages
16,788
remove the comments <!--> etc then try again

That's just them commenting out via <!-- -->. They put that there so you can easily see what the code is reffering to.
 

liloe

It's my birthday today!
Joined
Jan 25, 2004
Messages
4,166
I want to paste the paypal logo/hyperlink onto a website and this is the code PayPal provides but it doesn't seem to work, after pasting all that shows is the code;

<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=40
400, height=350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

Fook me, next time please format the damn code before posting ^^ PITA to read :p Also I hate code which opens some popups …

And the table is rather useless as well.

All you should need is the following.

<a href="https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside" target="_top"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a>

EDIT:
Content Management Systems are the Satan of Webhosting when it comes to adding code …
 

Aoami

I am a FH squatter
Joined
Dec 22, 2003
Messages
11,223
That's just them commenting out via <!-- -->. They put that there so you can easily see what the code is reffering to.

i know, but i've had a problem before when copying and pasting code and it was the comment tags that did it.
 

Zebolt

Can't get enough of FH
Joined
Dec 22, 2003
Messages
3,247
Fook me, next time please format the damn code before posting ^^ PITA to read :p Also I hate code which opens some popups …

And the table is rather useless as well.

All you should need is the following.

<a href="https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside" target="_top"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a>

EDIT:
Content Management Systems are the Satan of Webhosting when it comes to adding code …

Well your code doesn't do the same thing as their code :>

Though I totally agree with you on the EDIT part!
 

Afran

Part of the furniture
Joined
Oct 26, 2004
Messages
1,760
Aha, got it to work now, thanks! :)
 

Afran

Part of the furniture
Joined
Oct 26, 2004
Messages
1,760
Well atleast tell us what was wrong! omg :p

Well, I was actually asking for someone else, so I don't know exactly... But apparantley changing some tab to HTML made it work.
 

liloe

It's my birthday today!
Joined
Jan 25, 2004
Messages
4,166
Well your code doesn't do the same thing as their code :>

Though I totally agree with you on the EDIT part!

Yer I know, but I hate popups, so I prefer the target:"_top" ;)
 

Users who are viewing this thread

Top Bottom