Solved

Change z-index stack order dynamically

Posted on 2006-11-21
4
1,037 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

830 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