[SOLVED] Please, HELP!!!

This is a discussion on "[SOLVED] Please, HELP!!!" within the JavaScript Forum section. This forum, and the thread "[SOLVED] Please, HELP!!! are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 7th, 2007, 13:13
New Member
Join Date: Nov 2007
Location: Dominicana
Age: 26
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Please, HELP!!!

I have html page (no swf there) and by javascript I make appear pop-up window with swf file in frame. This kind of pop-up window is not separate window , its like child window of main and have buttons like : close, max, min. It's here: http://www.apsars.com
My problem is when I close pop-up with swf file, sound that swf contained continue playing till I close main html page.In future main html page will containe other swf file with other sound. THERE I'll have problem. Does anybody hase problem like this? Any advices will be helpfull. Thanks.
Reply With Quote

  #2 (permalink)  
Old Nov 7th, 2007, 13:46
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Age: 23
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Lucleonhart Send a message via MSN to Lucleonhart
Re: Please, HELP!!!

I think that klicking the X in the "popup" will call the "hidebox(id)" function of the popup.js.
This function just hides the elements, instead of unloading. BAD script.

A first solution would be:
Replace
Code: Select all
function hidebox(id){
if(w3c){
//if(currFb!=d.getElementById(id+'_b')){
d.getElementById(id+'_b').style.display='none';
d.getElementById(id+'_s').style.display='none';
//}
}}
with
Code: Select all
function hidebox(id){
if(w3c){
//if(currFb!=d.getElementById(id+'_b')){
d.getElementById(id+'_b').style.display='none';
d.getElementById(id+'_s').style.display='none';
changecontent(id,'');
//}
}}
This will call the changecontent function at the end of the hide function, loading a new (empty) content.
Reply With Quote
  #3 (permalink)  
Old Nov 7th, 2007, 14:06
New Member
Join Date: Nov 2007
Location: Dominicana
Age: 26
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Wow

THANK YOU VERY MUCH, Lucleonhart.
You have to much knowledge in web.
Its works!!! Immediately! WOW. Thanks alot.
:bounce8:
:woot_jump:
Reply With Quote
  #4 (permalink)  
Old Nov 7th, 2007, 14:36
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Age: 23
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Lucleonhart Send a message via MSN to Lucleonhart
Re: [SOLVED] Please, HELP!!!

*gg* Hey, no problem man.
That script is very huge at the moment because of multiple window support, so if you just need one window, another light script might be better.

Have fun!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 1 solved problem causes another delusion Web Page Design 9 Dec 21st, 2007 08:12
Adding "Topic Solved" for solved topics AdRock Webforumz Suggestions and Feedback 21 Oct 4th, 2007 15:08


All times are GMT. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43