Solved

Change z-index stack order dynamically

Posted on 2006-11-21
4
1,032 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
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. 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 :…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now