Javascript in postings

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
SpacePower
Registered User
Posts: 66
Joined: Wed Mar 16, 2005 9:04 pm
Location: Berlin, EU
Contact:

Javascript in postings

Post by SpacePower »

In my forum (see below) - special htmlcode-tags are allowed e.g. a and img. So when I posting something with a link

Code: Select all

<a href="http://www.spearhead-home.com/phpBB2/" target="_blank">Spearhead-Home Forum&Archives</a>
it is shown as a link.

I know to post html-tags is very restricted in the phpbb-forum if I have forgotten "" around a value the whole property will be removed.

What I want to do is placing a javascript-function in the overall_header.tpl-header which will open a new window.

I would like to post this:

Code: Select all

<a href="http://www.spearhead-home.com/News/Images_20050813_14/01_20050814_Lokeren.htm" target="_blank" onClick="javascript:openNewWindow('We at Lokerse');return false" onMouseOver="window.status='We at Lokerse';return true">Pics from the Lokerse feesten</a>
But after submitting the posting onClick and onMouseOver are removed.

Is there a chance to manage this?
Power to the Peaceful
My forum(s):
http://www.stayhuman.org/phpBB2
http://www.spearhead-home.com/phpBB2
My website:
Image

Locked

Return to “2.0.x Support Forum”