Unstoppable Domains โ€” Expired Auctions

HTML page inside a table

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

benc811

Established Member
Impact
4
I need a way to display another page in a table I have a music player here http://www.annoytheworld.com/flashworld/entertainment/Music/player.html

And I need to be able to change the video with a dropdown menu, I thought the best way to do this is to make another .html inside the table and make a new page of each video and the dropdown menu link to each. Does this seam like it would work if not what would, and how do i display another html page inside a table?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
do you know php? it would probably be better for something like this...

Code:
<table>
    <tr>
        <td><iframe name="main_frame" src="the/first/video/link/here.wmv"></iframe></td>
    </tr>
</table>

<select onChange="main_frame.src=this.value">
    <option value="URL TO NEXT VIDEO">Next Video</option>
    <option value="URL TO ANOTHER ONE">Another Video</option>
</select>

that should work for you
 
0
•••
Perfect thank you alot.
 
0
•••
err... right... does it work? I have just had a look, and I can't tell! hehe...
 
0
•••
It sort of works when I use the dropdown it doesnt change the page thats the only problem I am just missing the go button do you know how to add it?
 
Last edited:
0
•••
err... it should work on its own really... the "onChange=..." should make it work.

try putting this in your "head" part of the document:
Code:
<base target="main_frame">
and then changing the "onChange" bit to:
Code:
<select onChange="{location.href=this.value}">
it should hopefully then change the URL on its own.

If that fails you could do this:
Code:
<form method="get" action="javascript.video.value" target="main_frame">
<select name="video">
...
</select>
<input type="submit" value="ยป">
</form>
If that dosen't work... I'm sorry, I don't know much javascript, and I don't think I can do it! :red:

Sorry! :)
 
0
•••
That changes the whole page not just the page in the table should i make like a form or something to connect them?
 
0
•••
i don't understand what you mean?

I clicked the button, and it changed the page in the iframe, the page didn't exist though! lol

find this code in your website:
Code:
<SELECT name=video></SELECT>
You need to remove the closing tag... it is closing the drop-down box too soon! :hehe:
 
0
•••
I see it says the page doesnt exist but that page is www.google.com
 
0
•••
you need a submut button on your form...

<input type="submit" value="ยป">
 
0
•••
here is the HTML code for the page if it helps. thanks for helping.


<HTML><HEAD><TITLE>AnnoyTheWorld.com Music Player</TITLE><BASE href=http://216.7.189.123/~spamgame/flashworld/entertainment/Music/>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<SCRIPT language=wep_no_script_JavaScript>
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=475,height=200,left = 462,top = 334');");
}
// End -->
</SCRIPT>

<SCRIPT language=wep_no_script_JavaScript>

<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
<BASE target=main_frame>
<META content="" name=Keywords>
<META content="" name=Description></HEAD>
<BODY text=#000000 vLink=#ff0000 aLink=#dc143c link=#ff0000 bgColor=#000000 background=http://www.annoytheworld.com/flashworld/core/images/metal_plate_back.jpg>
<P align=center>
<TABLE style="WIDTH: 563px; HEIGHT: 285px" cellSpacing=2 cellPadding=2 width=563 bgColor=#696969 border=1>
<TBODY>
<TR>
<TD>
<TABLE style="WIDTH: 299px; HEIGHT: 206px">
<TBODY>
<TR>
<TD>
<P align=center><IFRAME style="WIDTH: 314px; HEIGHT: 275px" name=main_frame src="http://216.7.189.123/~spamgame/flashworld/entertainment/Music/Videos/Page.html">
</IFRAME></P></TD></TR></TBODY></TABLE>
<P align=center>
<FORM action=javascript.video.value method=get target=main_frame><SELECT name=video> <OPTION value=www.google.com selected>page 2</OPTION> <OPTION value=www.yahoo.com>page 1</OPTION><INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value=ยป> </SELECT></FORM></P></TD>
<TD>
<UL>
<LI>
<FORM name=form><SELECT size=1 name=site value="http://www.annoytheworld.com/flashworld/entertainment/Music/player.html"> <OPTION value="" selected>Radio Stations<OPTION value="javascript:popUp('http://player.virginradio.co.uk/core/player/index.html?service=vc')">Classic Rock<OPTION value="javascript:popUp('http://player.virginradio.co.uk/core/player/index.html?service=gr')">Groove and Soul<OPTION value="javascript:popUp('http://player.virginradio.co.uk/core/player/index.html?service=vr')">Virgin Radio</OPTION></SELECT> <INPUT style="WIDTH: 25px; HEIGHT: 23px" onclick=javascript:formHandler(this) type=button size=26 value=ยป></FORM></LI></UL>
<UL>
<LI><FONT face=Verdana color=#ff0000 size=4><STRONG><A href="http://www.annoytheworld.com/flashworld/core/music/submit/index.php" target=_blank><FONT color=#ff0000>Downloads</FONT></A></STRONG> </FONT><BR><BR><STRONG><FONT face=Verdana>Welcome to the Annoytheworld.com Music Player, to your left is the music video area click above for live radio.</FONT></STRONG></LI></UL></TD></TR></TBODY></TABLE></P>
</BODY></HTML>
 
0
•••
benc811 said:
<INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value=ยป> </SELECT></FORM>
substitute for...
Code:
</SELECT><INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value="ยป"></FORM>

also, get into the habbit of using quotes, and small letters. It is XHTML, and soon will become browser trends. Capital letters, and quote-less attributes will not work with XHTML! :)

Hpe this works! B-)
Tom
 
0
•••
I just thought should this be a PHP file not an HTML because it calls the main_frame? I dont know too much php just a thought.
 
0
•••
good... thats what I was hoping... I know php!! :lol:

right... in the <head> bit... put this:
PHP:
<?php
    if( isset($_POST['video']) ){
        $video = $_POST['video']; // chosen video
    }
    else{
        $video = "www.google.com"; // default page
   } 
?>
the iframe needs to be changed now:
Code:
<iframe src="<?php echo $video; ?>"></iframe>
the form needs to be changed too!
Code:
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <select name="video">
        <option value="http://yahoo.com">Option 1</option>
        <option value="http://yagoohoogle.com">Option 2</option>
    </select>
    <input type="submit" value="ยป">
</form>

and I would take
Code:
<base target="main_frame">
out of your head bit. :hehe:

good luck :)

PS: oh yea... change the file name to .php instead of .html... but you probably knoew that already! :hehe:

EDIT: woo... it works!
 
Last edited:
0
•••
Woo Hoo now just to setup the videos!
 
0
•••
0
•••
BratCat said:
B-) Can any one use something like this music station? I'm using iframes in it. Something I threw together right quick as an example for a friend.

http://bratcat.net/esf-sniper/esf-playlist.html

BratCat
can anyone use something like this? do you mean that you are selling the script or something?
 
0
•••
B-) No I'm not trying to sell anything but I would be happy to help somebody with a music station like that one....Peace!

BratCat
 
0
•••
BratCat said:
B-) No I'm not trying to sell anything but I would be happy to help somebody with a music station like that one....Peace!

BratCat
hey, sorry if that came out wrong. I wan't getting at you, I was just inquiring! lol - sorry :red:

I misinterpreted your post, and for that I apologise as well!

Tom
 
0
•••
hey, sorry if that came out wrong. I wan't getting at you, I was just inquiring! lol - sorry
:) Negative it didn't come out wrong and you didn't get to me the question you asked was legitimate...Peace!
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back