Solved

Change z-index stack order dynamically

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

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 24

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

705 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

19 Experts available now in Live!

Get 1:1 Help Now