Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 6th, 2004, 01:47 PM
iejun iejun is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: rotterdam, netherlands
Posts: 1 iejun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
triggering show hide layers by ID

I have a small image on my right side and one big one on my left hand side. now I want the bigger image to be viewed by rolling over the smaller image what contains a repeat region of 8 records.
The bigger one is a repeat of 1 records and is in a layer with show / hide function.

how can i get this working ?

plz help

Reply With Quote
  #2  
Old December 6th, 2004, 02:22 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by nawlej.

Reason: javascript and CSS question.

Reply With Quote
  #3  
Old December 6th, 2004, 02:33 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: triggering show hide layers by ID

This javascript defines all of your images, and preloads them (being a big image, you dont want to pull it down on mouseover.....then, the functions at the bottom are called from your <a href> tag...
Code:
<script language="javascript"><!--
if (document.images)	{
var imagea = new Image()
imagea.src = "images/imagea.gif"
var imagen = new Image()
imagen.src = "images/imageb.gif"
}

function active(imgName)	{
	if (document.images)
		document[imgName].src = eval(imgName + 'a.src');
}

function inactive(imgName)	{
	if (document.images)
		document[imgName].src = eval(imgName + 'n.src');
}
// -->
		</script>


to switch the image, call it like this inside of your small one.....
Code:
<a href=# onMouseover="active('image');" onMouseout="inactive('image');"><img src="images/images.gif" name="images" border=0></a>


Your big image would be toggled as imagea.gif in the code. You can pretty much get it to do what you want by messing with it a little.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > triggering show hide layers by ID


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT