The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > DHTML > HTML


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 06-21-2008, 03:18 PM
raptor5099 raptor5099 is offline
Novice
Join Date: Oct 2007
Posts: 25
iTrader: (0)
raptor5099 is on a distinguished road
open flash player in new window

When the visitor clicks Listen to album i would like the the flash player to open in a new window keeping them at whatever page they were on..



And this the code to the Listen to album (mysite2.html)...
Quote:
<script type="text/javascript" src="swfobject.js"></script>

<div id="flashPlayer">
This text will be replaced by the flash music player.
</div>

<script type="text/javascript">
var so = new SWFObject("playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF");
so.addVariable("autoPlay","yes")
so.addVariable("playlistPath","playlist.xml")
so.write("flashPlayer");
</script>

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by raptor5099 : 06-24-2008 at 09:25 PM.
Reply With Quote
  #2 (permalink)  
Old 06-21-2008, 04:27 PM
MrPickle's Avatar
MrPickle MrPickle is offline
Sr. Programmer
Join Date: Nov 2007
Location: England, Lincolnshire
Posts: 262
iTrader: (0)
MrPickle is on a distinguished roadMrPickle is on a distinguished roadMrPickle is on a distinguished road
Code:
window.open("url","window name","attribute");
The attribute can be any of these:
  1. width=300
    Use this to define the width of the new window.
  2. height=200
    Use this to define the height of the new window.
  3. resizable=yes or no
    Use this to control whether or not you want the user to be able to resize the window.
  4. scrollbars=yes or no
    This lets you decide whether or not to have scrollbars on the window.
  5. toolbar=yes or no
    Whether or not the new window should have the browser navigation bar at the top (The back, foward, stop buttons..etc.).
  6. location=yes or no
    Whether or not you wish to show the location box with the current url (The place to type http://address).
  7. directories=yes or no
    Whether or not the window should show the extra buttons. (what's cool, personal buttons, etc...).
  8. status=yes or no
    Whether or not to show the window status bar at the bottom of the window.
  9. menubar=yes or no
    Whether or not to show the menus at the top of the window (File, Edit, etc...).
  10. copyhistory=yes or no
    Whether or not to copy the old browser window's history list to the new window.

__________________
PM me and tell me your name or a phrase and I shall write it in Elf for you. English Tengwar to be precise.
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to MrPickle For This Useful Post:
raptor5099 (06-21-2008)
  #3 (permalink)  
Old 06-21-2008, 06:44 PM
raptor5099 raptor5099 is offline
Novice
Join Date: Oct 2007
Posts: 25
iTrader: (0)
raptor5099 is on a distinguished road
ok so thats the code that opens a new window.. Im a little confused on how to use that. sorry where as im still tryin to get a grasp on some of this but if u could give me a little more direction on where to use this in my code thatd be great.. Thanks!!

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #4 (permalink)  
Old 06-21-2008, 08:07 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 417
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
You could do what Mr Pickle said, or you could keep it simple and popup-blocker free by using
HTML Code:
<a href="flash_page.html" target="_blank">Listen</a>

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to TeraTask For This Useful Post:
raptor5099 (06-21-2008)
  #5 (permalink)  
Old 06-21-2008, 08:10 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 417
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
One additional note. Reduce the size of your images. 3.14 mb and 1.03 mb for banner.jpg and 12.jpg, respectively, is just totally unacceptable. Those things should be just a few kb. I'd save them as PNG's too to maintain quality.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to TeraTask For This Useful Post:
raptor5099 (06-21-2008)
  #6 (permalink)  
Old 06-21-2008, 09:22 PM
raptor5099 raptor5099 is offline
Novice
Join Date: Oct 2007
Posts: 25
iTrader: (0)
raptor5099 is on a distinguished road
aight cool thanks for the tips ill see what i can do...

edit: after using ur technique i realized i would like to have it open in a new window as a fixed window thatll fit the mp3 player.. so i switched to this:
Quote:
<a href="javascript:;" onclick=window.open('mysite2.html','displayWindow' ,'toolbar=no,scrollbars=no,width=325,height=250,to p=0,left=0')
target='_self'>Listen To Album</a>
Now i gotta address the those image sizes.. Thanks for the help!!!

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by raptor5099 : 06-21-2008 at 09:49 PM.
Reply With Quote
  #7 (permalink)  
Old 06-22-2008, 05:40 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 417
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
I'm not sure about the implications, but most of the time, people set the href to javascript:void(0);

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #8 (permalink)  
Old 06-23-2008, 09:49 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Just have your href launch a JS function - in yoru htmlText have it say <a herf='javascript:openWindow.....'>blah</a>
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT -7. The time now is 11:18 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


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 44 45 46 47 48 49 50