Click here to Skip to main content
12,756,303 members (34,147 online)

JavaScript

 
Questionhelp me please Pin
doa'a_9224-Nov-12 5:16
memberdoa'a_9224-Nov-12 5:16 
AnswerRe: help me please Pin
Leon Munir25-Nov-12 14:46
memberLeon Munir25-Nov-12 14:46 
GeneralRe: help me please Pin
J4amieC25-Nov-12 22:13
memberJ4amieC25-Nov-12 22:13 
GeneralRe: help me please Pin
Leon Munir26-Nov-12 3:06
memberLeon Munir26-Nov-12 3:06 
GeneralRe: help me please Pin
J4amieC26-Nov-12 6:30
memberJ4amieC26-Nov-12 6:30 
GeneralRe: help me please Pin
Marcus Kramer26-Nov-12 6:37
memberMarcus Kramer26-Nov-12 6:37 
GeneralRe: help me please Pin
doa'a_9226-Nov-12 10:28
memberdoa'a_9226-Nov-12 10:28 
Questiononmouseover and document.getElementById Pin
SRJ9223-Nov-12 5:18
memberSRJ9223-Nov-12 5:18 
Hi!
This has been bugging me for quite a while now... I have done many google searches but nothing seems to actually help me.... When i run this script i get the following error:
"SCRIPT5007: Unable to set value of the property 'onmouseover': object is null or undefined"
I don't know how it doesn't work but if i use onmouseover="show()" and obviosuly remake my function heading it works... I can't use the onmouseover="" as apparently its not the best way of doing it... Cna nayone shine some light on where it could be going wrong? Thanks for all your help!
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
		<style>
			#gallery
				{
					position:relative;
					display:block;
					width:800px;
					height:500px;
					margin:20px auto;
					text-align:center;
				}
			#image
				{
					display:block;
					width:800px;
					height:500px;
				}
			#imgBar
				{
					position:absolute;
					display:block;
					width:500px;
					height:80px;
					z-index:2;
					top:400px;
					left:145px;
					display:none;
				}		
		</style>
		<script>
			var galleryImg = document.getElementById('image');
			var bar = document.getElementById('imgBar');
			
			galleryImg.onmouseover = function ()
			{
				bar.style.display = "block";
			};
			galleryImg.onmouseout = function ()
			{
				bar.style.display = "none";
			};
		</script>
	</head>
	<body>
	<section id="gallery">
		<img src="#" id="image"/>
		<div id="imgBar">
		<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
		<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
		<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
		<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
		</div>
	</section>
	</body>
</html>


AnswerRe: onmouseover and document.getElementById Pin
J4amieC23-Nov-12 5:48
memberJ4amieC23-Nov-12 5:48 
GeneralRe: onmouseover and document.getElementById Pin
SRJ9223-Nov-12 6:49
memberSRJ9223-Nov-12 6:49 
AnswerRe: onmouseover and document.getElementById Pin
jainsachin30-Nov-12 10:17
memberjainsachin30-Nov-12 10:17 
Questiondisplaying different contentunder single layout Pin
radha123 from Hyderabad23-Nov-12 4:32
memberradha123 from Hyderabad23-Nov-12 4:32 
AnswerRe: displaying different contentunder single layout Pin
manojwadnere28-Dec-12 1:07
membermanojwadnere28-Dec-12 1:07 
QuestionRegular expression Pin
Member 962181822-Nov-12 3:25
memberMember 962181822-Nov-12 3:25 
AnswerRe: Regular expression Pin
n.podbielski22-Nov-12 21:00
membern.podbielski22-Nov-12 21:00 
GeneralRe: Regular expression Pin
Manfred R. Bihy22-Nov-12 22:20
mvpManfred R. Bihy22-Nov-12 22:20 
GeneralRe: Regular expression Pin
n.podbielski23-Nov-12 22:15
membern.podbielski23-Nov-12 22:15 
Questionform validation Pin
therainking7821-Nov-12 23:07
membertherainking7821-Nov-12 23:07 
AnswerRe: form validation Pin
Richard MacCutchan21-Nov-12 23:17
mvpRichard MacCutchan21-Nov-12 23:17 
GeneralRe: form validation Pin
therainking7828-Nov-12 14:14
membertherainking7828-Nov-12 14:14 
AnswerRe: form validation Pin
bVagadishnu28-Nov-12 12:14
memberbVagadishnu28-Nov-12 12:14 
GeneralRe: form validation Pin
therainking7828-Nov-12 14:17
membertherainking7828-Nov-12 14:17 
Questionopeing a new window in JS after time interval Pin
WaqasCheema21-Nov-12 0:36
memberWaqasCheema21-Nov-12 0:36 
AnswerRe: opeing a new window in JS after time interval Pin
Andrew Stoute30-Nov-12 5:51
memberAndrew Stoute30-Nov-12 5:51 
QuestionDraw circuit diagram using javascript Pin
anishkannan18-Nov-12 23:31
memberanishkannan18-Nov-12 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 23 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid