[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/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 - OnMouseOver werkt wel in IE maar niet in FF
Pagina 1 van 1

OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 14:35
door Anonymous
k heb de volgende conde geschreven:
[code="html"]
<script language="javascript">

function movein(which,html){
(which.style.background='#FF0000')
(which.style.color='white')
description.innerHTML=html
}

function moveout(which){
which.style.background='#F1F1F1'
which.style.color='666666'
description.innerHTML='Welkom op onze website'
}

function moveout2(which){
which.style.background='#C0C0C0'
which.style.color='666666'
description.innerHTML='Welkom op onze website'
}

</script>
[/code]
Daarbij hoort natuurlijk:

[code="html"]
<td class="menu" id="choiceA2" style="cursor:pointer; cursor:hand;background-color:#F1F1F1" onMouseOver="movein(choiceA2,'Bekijk hier ons gastenboek')" onMouseOut="moveout(choiceA2)" onClick="window.open('http://www.vives.nu/cgi-bin/fpg.cgi','main')" height="10" width="70" align="left">
<b>&nbsp; Gastenboek</b></td>
[/code]
Dit werkt prima in IE maar niet in FF, heb het hele internet al afgezocht maar kan de oplossing niet duidelijk vinden, kan iemand mij helpen? tnx

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 14:54
door Anthony
Kan je een voorbeeld tonen online?

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 15:49
door Anonymous
Tuurlijk



Het gaat om de kop, als je over gaat met je muis dan krijg je een handje en dat zou dan ook rood op moeten lichten, dit werkt in IE wel maar in FF dus niet.

Alvast Bedankt,

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 16:24
door Anthony
Ga in FireFox even naar Extra > Javascript console, Wis alle errors die er al zouden staan en ga naar je site, kijk dan terug naar de Javascript console en je zal kunnen afleiden waarom dat script niet werkt.

En ik zie het eerlijkgezegt ook niet werken in IE hier.

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 16:50
door Dotcpu
volgens de xhtml standaart moeten onmouseover in kleine letters (dus niet onMouseOver="")

of is dat mierenneuken? :help: Confused

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 17:42
door Anonymous
Hij zegt het volgende:

Fout: choiceA7 is not defined
Maar volgens mij heb ik dat welgedaan namelijk hier:

[code="html"]<td class="menu" id="choiceA2" style="cursor:pointer; cursor:hand;background-color:#F1F1F1" onMouseOver="movein(choiceA2,'Bekijk hier ons gastenboek')" onMouseOut="moveout(choiceA2)" onClick="window.open('../../../cgi-bin/fpg.cgi','main')" height="10" width="70" align="left">
<b>&nbsp; Gastenboek</b></td>[/code]

Dus bij id="choiceA2"

Hoe kan ik dat anders misschien nog definen?

Groetjes Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 19:01
door Derk
In FF werkt het niet, in IE wel alleen crashed mijn IE, dat betekent dat er een flinke javascript fout in zit.
In Opera werkt het wel correct Smile

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 20:51
door Anonymous
Bij mij werkt het perfect in IE ik weet niet wat er bij jullie dan mis gaat, maar ik heb nergens last van, alleen in FF dus...

Eerst had ik dat probleem ook met de cursor die in FF niet veranderde maar in IE wel, dat heb ik inmiddels opgelost maar het andere probleem blijft.

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 19 feb 2006 22:13
door Derk
hmz... Als mijn IE browser een error geeft klopt er toch iets niet....
als je op jou site komt in IE, komt er dan links onderin een geel icoontje? als je daarop dubbelklikt kan je zien (net als in FF trouwens) wat er fout is. Mischien dat dat toch wat oplevert?

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 20 feb 2006 13:50
door Anonymous
Er komt inderdaad een geel icoontje, hij geeft de fout melding:
Line: 14
Char: 1
Error: Function expected
Code: 0
URL: http://janusserver/Vives/content/frames/kop.htm

Lijn 14 in die file is het volgende:

[code="html"]function movein(which,html){
(which.style.background='#FF0000') // Dit is lijn 14
(which.style.color='white')
description.innerHTML=html[/code]

Ik denk dat daar dus iets voor moet, ik dacht zelf aan iets van GetElementByid ofzo maar dat werkt niet, ik denk wel dat het iets moet zijn wat daar op lijkt.
Iemand een idee?

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 20 feb 2006 15:58
door Rik
Heb je wich wel ingevuld?

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 20 feb 2006 16:22
door Sjoerd
Ja die wordt hier ingevuld:
[code="html"]<td class="menu" id="choiceA2" style="cursor:pointer; cursor:hand;background-color:#F1F1F1" onMouseOver="movein(choiceA2,'Bekijk hier ons gastenboek')" onMouseOut="moveout(choiceA2)" onClick="window.open('../../../cgi-bin/fpg.cgi','main')" height="10" width="70" align="left">
<b>&nbsp; Gastenboek</b></td>
[/code]

Ik heb op Internet ergens gelezen dat IE iets makkelijker is met id's dan FF maar ik weet niet precies wat ik dan moet invullen

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 20 feb 2006 17:44
door Sjoerd
Ok ik heb de Error die IE gaf nu opgelost, IE wou dat de haakjes weg gehaald werden.
Dus:
dit:[code="html"]function movein(which,html){
(which.style.background='#FF0000')
(which.style.color='white')
description.innerHTML=html
}
[/code]
Wordt dit[code="html"]function movein(which,html){
which.style.background='#FF0000'
which.style.color='white'
description.innerHTML=html
}
[/code]

Maar de Error in FF blijft.
Het javascript console geeft de fout dat de functie which niet wordt gedefineerd maar zoals je in mn vorrige post kunt zien denk ik dat ik dat wel gedaan heb.

Kan iemand mij verder helpen

Groeten Sjoerd

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 17 jul 2006 14:51
door Anonymous

Re: OnMouseOver werkt wel in IE maar niet in FF

BerichtGeplaatst: 17 jul 2006 16:01
door KillerSponge
Zou kunnen werken, maar deze topic is al flink oud, dus ik denk niet dat die gozer hier nog kijkt ^^