[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Javascript echoën
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Javascript echoën

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Javascript echoën

Berichtdoor Remi » 14 jun 2006 13:23

Ik probeer een stuk HTML met javascriptje te echoën, maar dat gaat niet. Dit komt omdat javascript ook ' gebruikt en ak gebruik ik " klopt mijn HTML al helemaal niet meer. wat kan ik hier aan doen??
Hier is de php code:
[code="php"]<?php
$subject = $_GET['subject'] ;

echo '<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="250"><img name="header" src="images/header_blue.gif" width="800" height="250" /></td>
</tr>
<tr>
<td colspan="2"><table width="800" height="60" border="0" cellspacing="0" cellpadding="0" background="images/nav_bg.gif">
<tr>
<td width="3"><img src="images/nav_side.gif" width="3" height="60" /></td>
<td width="160"><div align="center"><a href="index.html"
onmouseover="document.header.src='images/header_orange.gif'"
onmouseout="document.header.src='.$subject.'">
<img src="images/nav_home.gif" width="62" height="25" border="0" /></a>
</div>
</td>
<td width="4"><div align="center"><img src="images/nav_stripe.gif" width="4" height="49" /></div></td>
<td width="159"><div align="center"><a href="index.html"
onmouseover="document.header.src='images/header_red.gif'"
onmouseout="document.header.src='.$subject.'">
<img src="images/nav_news.gif" width="59" height="25" border="0" />
</a>
</div>
</td>
<td width="4"><div align="center"><img src="images/nav_stripe.gif" width="4" height="49" /></div></td>
<td width="160"><div align="center"><a href="index.html"
onmouseover="document.header.src='images/header_orange.gif'"
onmouseout="document.header.src='.$subject.'">
<img src="images/nav_porto.gif" width="104" height="25" border="0" />
</a>
</div>
</td>
<td width="4"><div align="center"><img src="images/nav_stripe.gif" width="4" height="49" /></div></td>
<td width="159"><div align="center"><a href="index.html"
onmouseover="document.header.src='images/header_green.gif'"
onmouseout="document.header.src='.$subject.'">
<img src="images/nav_friends.gif" width="76" height="25" border="0" />
</a>
</div>
</td>
<td width="4"><div align="center"><img src="images/nav_stripe.gif" width="4" height="49" /></div></td>
<td width="137"><div align="center"><a href="index.html"
onmouseover="document.header.src='images/header_purple.gif'"
onmouseout="document.header.src='.$subject.'">
<img src="images/nav_contact.gif" width="81" height="25" border="0" />
</a>
</div>
</td>>
<td width="3"><img src="images/nav_side.gif" width="3" height="60" /></td>
</tr>
</table>';
?>[/code]
De onmouse outs zijn goed, maar niet de onmouseovers.
Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript echoën

Berichtdoor KillerSponge » 14 jun 2006 13:26

Je moet de quotes in het scriptje backslashen. Dan wordt de quote voor het script genegeerd. Dus gewoon voor elke quote binnen de echo een backslash (\) zetten.

Smile
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Javascript echoën

Berichtdoor Remi » 20 jun 2006 15:58

Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript echoën

Berichtdoor KillerSponge » 20 jun 2006 16:40

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Javascript echoën

Berichtdoor Remi » 20 jun 2006 17:40

kan je anders klein voorbeeldje geven.
Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript echoën

Berichtdoor KillerSponge » 20 jun 2006 18:05

Je mag dit niet doen in een echo:

[code="html"]onnmouseover="document.header.src='images/header_orange.gif'"[/code]

In plaats daarvan moet dit t zijn:

[code="html"]onmouseover="document.header.src=\'images/header_orange.gif\'"[/code]
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Javascript echoën

Berichtdoor Remi » 21 jun 2006 11:08

dankje wel, ik zie al wit verkeerd deed.
Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript echoën

Berichtdoor KillerSponge » 21 jun 2006 13:58

Ok, mooi dat het verholpen is Smile
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05


Keer terug naar PHP, ASP, SQL



cron