943,946 Members | Top Members by Rank

Ad:
May 7th, 2007
0

Dynamic HTML Pop-up Window

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bgagan911 is offline Offline
4 posts
since May 2007
May 7th, 2007
0

Re: Dynamic HTML Pop-up Window

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.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
May 7th, 2007
0

Re: Dynamic HTML Pop-up Window

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bgagan911 is offline Offline
4 posts
since May 2007
May 7th, 2007
0

Re: Dynamic HTML Pop-up Window

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.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
May 8th, 2007
0

Re: Dynamic HTML Pop-up Window

Thanks I think I can work around with the selector
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bgagan911 is offline Offline
4 posts
since May 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Upload file without User Interaction
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Frames





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC