[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
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

OnMouseOver werkt wel in IE maar niet in FF

Het echte opmaakwerk, alles vragen over HTMLen, CSSen en Javascripten.

OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 19 feb 2006 14:35

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
Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anthony » 19 feb 2006 14:54

Kan je een voorbeeld tonen online?
Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - Belgiƫ

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 19 feb 2006 15:49

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
Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anthony » 19 feb 2006 16:24

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.
Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - Belgiƫ

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Dotcpu » 19 feb 2006 16:50

volgens de xhtml standaart moeten onmouseover in kleine letters (dus niet onMouseOver="")

of is dat mierenneuken? :help: Confused
Dotcpu
wmpr
 
Berichten: 59
Geregistreerd: 11 nov 2005 18:49

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 19 feb 2006 17:42

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
Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Derk » 19 feb 2006 19:01

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
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 19 feb 2006 20:51

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
Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Derk » 19 feb 2006 22:13

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?
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 20 feb 2006 13:50

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
Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Rik » 20 feb 2006 15:58

Heb je wich wel ingevuld?
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Sjoerd » 20 feb 2006 16:22

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
Sjoerd
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Sjoerd » 20 feb 2006 17:44

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
Sjoerd
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor Anonymous » 17 jul 2006 14:51

Anonymous
 

Re: OnMouseOver werkt wel in IE maar niet in FF

Berichtdoor KillerSponge » 17 jul 2006 16:01

Zou kunnen werken, maar deze topic is al flink oud, dus ik denk niet dat die gozer hier nog kijkt ^^
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05


Keer terug naar HTML, CSS, Javascript



cron