Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript tabswitch IE Bug
Old 07-19-2009, 03:10 PM Javascript tabswitch IE Bug
Basti's Avatar
Average Talker

Posts: 22
Name: Sebastian
Location: Germany
Trades: 0
Hey,
ive found this tabswitch a while back.
I use it to switch between 2 Videoplayers which can been viewed here http://www.anime-movie-site.com/Galaxy-Express-999

Problem is that its broken in IE, firefox is just fine

but in ie 6/7
- it switch the tab, but the other movie dont stop playing, like it does and should in firefox.

in ie8
once tab is clicked 1 player stands still and the other is always at the bottom of the browser window :/ if you scroll once clicked, you see it.

I dont want to find something else, because i have the a href javascript codes often. Would be a pain to edit the movies again.


I use this on the actual movies
video #2 is display: none with css by default pageload.

PHP Code:
<ul class="movie_tabs">
<
li><a href="javascript:tabSwitch('tab_1', 'vid_1');" id="tab_1" class="active">English Subtitles</a></li>
<
li><a href="javascript:tabSwitch('tab_2', 'vid_2');" id="tab_2">English Dubbed</a></li>
</
ul>

movies codes in divs 
and the js file
PHP Code:
function tabSwitch(new_tabnew_content) {  
   
document.getElementById('vid_1').style.display 'none';  
document.getElementById('vid_2').style.display 'none';  
document.getElementById(new_content).style.display 'block';     
      
  
document.getElementById('tab_1').className '';  
document.getElementById('tab_2').className '';  
document.getElementById(new_tab).className 'active';        
   

Does anyone know how to make this work in IE? possibly 6,7,8

Thanks,
Seb
__________________
Translations? English to German, drop me a Pm :: 0.03$ / word
Basti is offline
Reply With Quote
View Public Profile Visit Basti's homepage!
 
 
Register now for full access!
Old 07-20-2009, 05:07 AM Re: Javascript tabswitch IE Bug
Banned

Posts: 4
Name: ColbyGriffin
Trades: 0
Recently, I was working on the FoxSports.com NBA Scoreboards. While putting the scoreboard template together using Adobe Spry, I noticed that I would have to create a universal "Tab" system that was easy to reproduce as needed and would work for multiple boards (multiple tab sections) on the same page. I didn't want to jump through hoops and a bunch of extra code to make it happen. SO! here is what I came up with! Check it out!
ColbyGriffin is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 02:22 PM Re: Javascript tabswitch IE Bug
Basti's Avatar
Average Talker

Posts: 22
Name: Sebastian
Location: Germany
Trades: 0
What kind of spammy post is that??? Stop promoting your site using "related" posting, but giving no answer at all...
__________________
Translations? English to German, drop me a Pm :: 0.03$ / word
Basti is offline
Reply With Quote
View Public Profile Visit Basti's homepage!
 
Reply     « Reply to Javascript tabswitch IE Bug
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19568 seconds with 12 queries