Dynamic HTML Pop-up Window

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Dynamic HTML Pop-up Window

 
0
  #1
May 7th, 2007
Hi there guys..!! Well what I'm looking for is..

Basically I want to have an HTML POP-UP Window, which would contain a FLASH File of the RESOLUTION "800x622". I want to have Google ads on both sides and at the bottom too. It's easy to define a layout for ads.

BUT the problem is I've lot's of Flash files, and I want to have a pop-up window that can actually change the flash files accordingly.

The RESOLUTION of all the flash files are the same, only the difference is the the files. So I was looking for a HTML/Javascript where I can pass parameter to change the file in the page.

My Site is working on Joomla, I have lot's of content and Want to grow.. if not right now may be later with more and more content and videos..

I had thought of this earlier BUT ..

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <a href="#" onclick="window.open('flash.html','newwin','width=800,height=622');">View File</a>
BUT then it would consume space (think about 100's of REDUNDANT HTML Pages) on my server, and moreover I have copy the whole code over and over again, and that I don't want to do... and there will be more users who would be contributing there.. and I don't want them to replace the Adsense Code there... while contributing. That's why I dropped that plan, so if there's any thing I could possibly do with passing filename as parameters ? any Idea possibly other than this, Any possibility of this being done in PHP ?

Thanks
Gagan
Last edited by bgagan911; May 7th, 2007 at 5:05 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Dynamic HTML Pop-up Window

 
0
  #2
May 7th, 2007
Let me get this straight. You want us to HELP you put MORE advertising on the web?


If this is not the case, then don't use a pop-up format, or it will be blocked.

Is the user supposed to select a flash file? If so, use a dropdown menu or other selection method, and pass the URL to your JavaScript program.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Re: Dynamic HTML Pop-up Window

 
0
  #3
May 7th, 2007
That's the not the case exactly, I was just honest about my problem, I needed a solution.. that's all.

Check my site, delhitechies.com - The site have content/articles.

Each Article has
Text | Screenshots | Video | More ..
Tabs

Now the Video tab would have a link where, user clicks and a static HTML Page opens with a flash file in it.

Now the flash file would be dynamically selected something like -- popupWin("video1.swf") , so that I don't have to make Individual HTML pages for all the Flash Files. That's why I asked is there a possibility of doing this ?

Thanks for the Reply.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Dynamic HTML Pop-up Window

 
0
  #4
May 7th, 2007
The simplest way is to use an anchor link. Each link can directly call a multimedia video player. Using an anchor link:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <a href="film123.mpg">Movie Number 123</a>
Use one such link for each video file.

But this opens the player by itself in a new window.

It's harder to open the player in a page full of ads.. You need to have some kind of selector to select the proper flash file. It's going to be a dropdown menu, (html select tag), radio buttons (input tag), or some other input device on the html page.

Then you need either an onclick JavaScript function call or a PLAY button telling the JavaScript function to start the video. The selector will provide the url of the flash file in a variable.

The html object tag is used to embed the player in the page.
Last edited by MidiMagic; May 7th, 2007 at 5:20 pm.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Re: Dynamic HTML Pop-up Window

 
0
  #5
May 8th, 2007
Thanks I think I can work around with the selector
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC