User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,196 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,924 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3959 | Replies: 4 | Solved
Reply
Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Help Dynamic HTML Pop-up Window

  #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 ..

<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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Dynamic HTML Pop-up Window

  #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  
Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Re: Dynamic HTML Pop-up Window

  #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  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Dynamic HTML Pop-up Window

  #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:
<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  
Join Date: May 2007
Posts: 4
Reputation: bgagan911 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bgagan911 bgagan911 is offline Offline
Newbie Poster

Re: Dynamic HTML Pop-up Window

  #5  
May 8th, 2007
Thanks I think I can work around with the selector
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 3:48 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC