?
Solved

Change z-index stack order dynamically

Posted on 2006-11-21
4
Medium Priority
?
1,046 Views
Last Modified: 2013-12-24
Hi, I'm using z-index to stack a couple of swf files want to change the stacking order from a rollover event in flash and coldfusion.  Is there a way to do that?
0
Comment
Question by:COwebmaster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
dgrafx earned 2000 total points
ID: 17994380
heres a simple script to change zindex
function Z(e1,e2) {
document.getElementById(e1).style.zIndex=101;
document.getElementById(e2).style.zIndex=102;
}
so on your event - send elements to the script
for ex. onmouseover="Z('e1','e2')" - the e1 & e2 would be the id's of the elements (swf's)
the higher zindex is on top
0
 

Author Comment

by:COwebmaster
ID: 17996087
So I would place that function on the cfm page, correct?
0
 

Author Comment

by:COwebmaster
ID: 17996129
Also, would I choose Flash Only or Flash FSCommand in Settings?
0
 
LVL 25

Expert Comment

by:dgrafx
ID: 17996734
yes, try it on the webpage.
don't know what to choose "flash only" or "flash fscommand"
experiment.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question