corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Javascript function changing css?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Javascript function changing css?
Rus
Member

Registered: 24th Jan 05
Location: SE London, Kent
User status: Offline
22nd Jun 07 at 10:39   View User's Profile U2U Member Reply With Quote

long story short, click a flash button, calls javascript function in an asp.net page (under <script language="javascript">) that javascript part has a function called zindex with an if statement of if z=1 { z=0. nothing hard but what i want it to do is changed a style from the css page (which is import of course). so the class holding the embedded flash file, i want its z index to change from 1, to 2. so everytime you click this button in flash, it swaps its z index in asp.net.... using javascript :lol:

does that make any sense at all?

[Edited on 22-06-2007 by Rus]
Rus
Member

Registered: 24th Jan 05
Location: SE London, Kent
User status: Offline
22nd Jun 07 at 10:53   View User's Profile U2U Member Reply With Quote

actually fuck that off. just done this in the end

<script language="javascript">
var z = 0
function zindex() {
if (z=0) {
<div id="flash">
<script src="flash8embed2.js"></script>
</div>
} else {
<div id="flash2">
<script src="flash8embed2.js"></script>
</div>
}
}
</script>

[Edited on 22-06-2007 by Rus]

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Urgent help - Calling all HTML'ers Ren Geek Day 22 1186
25th Nov 05 at 19:42
by drunkenfool
 
CSS webdesign help Houckham Geek Day 3 909
20th Apr 06 at 11:01
by Houckham
 
FAO: Webmasters: CSS Bart Geek Day 14 1140
24th Oct 06 at 14:57
by Ian
 
Input on a website please, web designers especially :D drunkenfool Geek Day 56 3050
25th Nov 06 at 19:08
by aPk
 
Javascript liamC Geek Day 13 475
8th Mar 07 at 23:53
by liamC
 

Corsa Sport » Message Board » Off Day » Geek Day » Javascript function changing css? 29 database queries in 0.0096140 seconds