HTML - What Is Wrong In This Code...
Hi,
I want to know what is wrong in the following code. I have a simple HTML page that calls another page. while calling, it passes the file name. In the calling page, i am reading the file name and i want to play the file name. when i select 005 or 003 or 004 or 002 file, still the code is playing only 005 file. how to resolve this problem? Thanks a lot in advance. Regards Lakshmi </style> </head> <script language="javascript"> function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); name = name.replace(/\s/g,"%20"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; } var tag_param =gup( 'PlayName' ); document.write(tag_param); </script> <body> <p> <OBJECT ID="MediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="100%" height="100%" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject"> if(tag_param='005') <PARAM NAME="fileName" VALUE="005.m3u">; if(tag_param='002') <PARAM NAME="fileName" VALUE="002.m3u">; if(tag_param='004') <PARAM NAME="fileName" VALUE="004.m3u">; if(tag_param='003') <PARAM NAME="fileName" VALUE="003.m3u">; Similar TutorialsI am trying to make a page that you can click a button and it puts text into a text box. I actually had this working when the buttons were standard <Input type=button.> text but when I changed them to images it places the text in the box then clears it out about 90% of the time. If I click it enough (Random amounts of time each attempt) it will stay eventually. Here is the code: Quote: <center><body background="img/bg.jpg"> <B><h2><font color="lime">Notes</font></B></h2> <script type="text/javascript"> <!--; function clearStuff(clear) {document.forms["textForm"].textArea.value = "";} function addStuff(stuff) { document.forms["textForm"].textArea.value += stuff;} //--> </script> <form name="textForm" action="#" method="get"> <textarea name="textArea" style="width:680px;height:180px; background:LightBlue"></textarea> <br> <input type="image" src="image/clear.png" border="0" onclick="javascript:clearStuff();" /> <br /> <hr> <B>Notes</B><br> <input type="image" src="image/clear.png" border="0" onclick="javascript:addStuff('Boo');" /> </form> Also I noticed my address bar says: file:///C:/Documents%20and%20Settings/BLAH/Desktop/Site2%20BETA/speedy.htm?textArea=&x=60&y=22# and that X= and Y= #s jump around, not sure where that code is coming from. Thanks in advance for any help! Quote: <html> <head> <title>Test Test</title> <script type="text/javascript" language="JavaScript"> function LaunchCommand() { var launcher = new ActiveXObject("WScript.Shell"); launcher.Run("file:///C:/Program/ColorCop.exe"); window.open('','_self',''); window.close(); } </script> </head> <body> <br> <center> <font size = 5>Click the button</font> <br><br> <input name="Command" value="RGB Color" onclick="LaunchCommand()" type="button" style="width:200px;height:100px"> <body> <center> </html> Above is a short code which i have written. When i tested it in windows XP, the program ColorCop opens when i click the button. But in Windows Server 2008 R1, nothing happens when i click the button. Any idea why? TQ so I'm making a forum and I am having a small problem with something. When I first open my forum the 'userbar' with contains the sign in and create account links does not show. If I add a margin to the userbar the links do appear so its like they are being covered by something when I first open the page. When I click the create topics links it tells me I can't create topics because I'm not signned in and provides a link to the sign in page. Once I sign in the userbar appears I have attached a file with screen shots of the forum so i hope that will help explain my problem. I didn't post any code because I'm not sure what part of my code is causing this error Hope someone can help Hi, I am in the middle of building a html page and want to use the greybox lightbox code Ive found to load another webpage in the lightbox over my home page. Ive downloaded the greybox files and link to them (as instructed), Ive added the greybox script in my head tags (as instructed) and finally added the rel tag to my links... the pages open, but in a seperate browser window- they don't open in the greybox window. Ive played around with it for ages, trying to work it out- can anyone tell me what is wrong with this code?? <html> <head> <title>YOUTOPIA // personal fitness & wellbeing</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style type="text/css"> <!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #F8E0B2; } body { background-color: #000000; background-image: url(images/home-bg.jpg); background-repeat: repeat-x; } a:link { text-decoration: none; color: #F8E0B2; } a:visited { text-decoration: none; color: #F8E0B2; } a:hover { text-decoration: none; color: #FFFFFF; } a:active { text-decoration: none; color: #F8E0B2; } .style1 { font-size: 10px; font-style: italic; } #facebook { position:absolute; width:50; height:50; z-index:1; background-image: url(images/greenfblogo.png); left: 246px; top: 523px; visibility: visible; } .style2 {font-size: 12px} --> </style> <script type="text/javascript"> var GB_ROOT_DIR = "http://www.youtopiastudio.com.au/public/www/greybox/"; </script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/AJS.js"></script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/AJS_fx.js"></script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/gb_scripts.js"></script> <link href="http://www.youtopiastudio.com.au/public/www/greybox/gb_styles.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- ImageReady Slices (home-youtopia.psd) --> <script type="text/javascript"> var GB_ROOT_DIR = "http://www.youtopiastudio.com.au/public/www/greybox/"; </script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/AJS.js"></script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/AJS_fx.js"></script> <script type="text/javascript" src="http://www.youtopiastudio.com.au/public/www/greybox/gb_scripts.js"></script> <link href="http://www.youtopiastudio.com.au/public/www/greybox/gb_styles.css" rel="stylesheet" type="text/css" /> <a rel="gb_page_center[500, 500]" href="http://www.youtopiastudio.com.au/what.html" >link</a> <table width="900" height="600" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td colspan="14"> <img src="images/image-1.jpg" width="900" height="90" border="0" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="90" alt=""></td> </tr> <tr> <td rowspan="2"> <img src="images/home-youtopia_02.jpg" width="82" height="33" alt=""></td> <td colspan="4"> <img src="images/home-youtopia_03.jpg" width="203" height="18" alt=""></td> <td> <img src="images/home-youtopia_04.jpg" width="63" height="18" alt=""></td> <td colspan="8" rowspan="2"> <img src="images/home-youtopia_05.jpg" width="552" height="33" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="18" alt=""></td> </tr> <tr> <td colspan="4"> <img src="images/home-youtopia_06.jpg" width="203" height="15" alt=""></td> <td> <img src="images/home-youtopia_07.jpg" width="63" height="15" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="15" alt=""></td> </tr> <tr> <td colspan="14"> <img src="images/home-youtopia_08.jpg" width="900" height="28" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="28" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/home-youtopia_09.jpg" width="228" height="51" alt=""></td> <td colspan="6" rowspan="3"> <img src="images/home-youtopia_10.jpg" width="281" height="269" alt=""></td> <td colspan="4" rowspan="4" background="images/test-panel-main.jpg"> <div style="position:relative; width:300px;"> <div id="maintext" style="position:absolute; left:11px; top:-128px; z-index:10; width: 353px; height: 272px; visibility: visible;"> <div align="justify"> <p class="style2"><em>We are a private, personal training and wellness facility, with a focus on lifestyle, balance and wellbeing. Youtopia provides a calm, safe and friendly environment where you can go to simply get fit for living <strong>LIFE</strong>! There are no cues for equipment, no life-long contracts and no pricey membership fees. </em></p> <p class="style2"><em><br> Youtopia provides a challenging and functional workout rather than frustrating encounters. Youtopia is exclusive but not expensive & more importantly it’s all about <strong>YOU</strong>! There’s no non-sense, no attitude and no judgements.</em></p> <p class="style2"><em> <br> Many of us want to lead more active and healthy lifestyles and have regular exercise be a part of our lives. But we lack the motivation to reach our goals alone... <a href="http://www.youtopiastudio.com.au/what.html"title="What is Youtopia?" rel="gb_page_center[500, 500]" ><strong>read more</strong></a> </em></p> <p class="style1"> </p> </div> </div> </div> </td> <td rowspan="5"> <img src="images/home-youtopia_12.jpg" width="19" height="313" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="51" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/text--bar-left.jpg" width="228" height="22" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="22" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/text-panel-small.jpg" width="228" height="196" alt=""> </td> <td> <img src="images/spacer.gif" width="1" height="196" alt=""></td> </tr> <tr> <td colspan="9" rowspan="2"> <img src="images/home-youtopia_15.jpg" width="509" height="44" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="22" alt=""></td> </tr> <tr> <td colspan="4"> <img src="images/text-bar-right.jpg" width="372" height="22" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="22" alt=""></td> </tr> <tr> <td colspan="14"> <img src="images/home-youtopia_17.jpg" width="900" height="35" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="35" alt=""></td> </tr> <tr> <td colspan="14"> <img src="images/home-youtopia_18.jpg" width="900" height="16" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="16" alt=""></td> </tr> <tr> <td colspan="2" rowspan="2"> <a href="http://www.facebook.com" target="_blank"><img src="images/home-youtopia_19.jpg" alt="" width="95" height="60" border="0"></a></td> <td colspan="2"> <img src="images/button-why.jpg" alt="" width="155" height="30" border="0"></td> <td rowspan="2"> <img src="images/home-youtopia_21.jpg" width="35" height="60" alt=""></td> <td colspan="2"> <img src="images/button-philosophy.jpg" width="160" height="30" alt=""></td> <td rowspan="2"> <img src="images/home-youtopia_23.jpg" width="35" height="60" alt=""></td> <td colspan="2"> <img src="images/button-trainers.jpg" width="149" height="30" alt=""></td> <td rowspan="2"> <img src="images/home-youtopia_25.jpg" width="35" height="60" alt=""></td> <td> <a href="http://www.thehavocplan.com"rel="gb_page_center[500, 500]"><img src="images/button-gallery.jpg" alt="" width="181" height="30" border="0"></a></td> <td colspan="2" rowspan="2"> <img src="images/home-youtopia_27.jpg" width="55" height="60" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="30" alt=""></td> </tr> <tr> <td colspan="2"> <img src="images/button-eat.jpg" width="155" height="30" alt=""></td> <td colspan="2"> <img src="images/button-offers.jpg" width="160" height="30" alt=""></td> <td colspan="2"> <img src="images/button-press.jpg" width="149" height="30" alt=""></td> <td> <img src="images/button-details.jpg" width="181" height="30" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="30" alt=""></td> </tr> <tr> <td colspan="14"> <img src="images/home-youtopia_32.jpg" width="900" height="25" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="25" alt=""></td> </tr> <tr> <td> <img src="images/spacer.gif" width="82" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="13" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="133" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="22" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="35" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="63" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="97" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="35" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="29" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="120" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="35" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="181" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="36" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="19" height="1" alt=""></td> <td></td> </tr> </table> <!-- End ImageReady Slices --> </body> </html> Ok so basically I need this to work, it should, im hoping submit the checked radio button to the website ive directed it to (action), this is a game, not a real theft for anyone wondering so can anyone fix it and reply back asap? thanks! <html> <title>GTA</title> <head> <SCRIPT LANGUAGE="JavaScript"> setTimeout('document.gta_form.submit()',1800); </SCRIPT> <form method="post" action="http://www.gangsterparadise2.com/gta.php" name="gta_form" id="gta_form"> <input name="choose" type="radio" value="1" checked/> Steal from a Car Factory <br> <input name="Submit" type="submit" class="formbutton" value="Do that ****!" id="gta" /> </form> </head> </html> I have this line of PHP that keeps getting an error message about an unexpected "=" sign. if ($prevPage > $chapters[$chapter][0]) $out .= "<a href="/book.php?chapter={$chapter}&page={$prevPage}">Prev</a>"; As best I can figure it out the offending "=" is that one in "....?chapter={$chapter..." Can anyone tell me how to fix this, please? Whats wrong with this code its not comming up when i try it HTML Code: <html> <head> <title> Buzz OFF!!! </title> <script language="JavaScript"> <!- Hide from older browsers alert("Press ok to start reformatting your hard disk"); // end hiding -> </script> </head> </html> I'm changing from HTML 4.01 to XHTML 1.0 Transitional now, but what are my errors here exactly? http://validator.w3.org/check?uri=ht...andersmj.dk%2F EDIT: Looks like there's only one error now, but please allow me to ask again if solving this one causes new ones. found the problem. Ok, so I was using dream weaver to make a website for a school assignment. Everything was ok until I previewed the page in my browser and everything thing was way of context the table was stretched a lot more than it should have been, but everything looked perfect in design view in dreamweaver. I understand that the browser is going to be larger and the screen resolution will be away out, but I'm not sure how to fix it, what do I need to change to get a good layout. Thanks. Here is the code. Code: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#FFFFFF"> <table width="72%" border="0" cellspacing="0" cellpadding="4"> <tr> <td rowspan="2" bgcolor="#666666"> </td> <td width="50%" height="141" bgcolor="#000099"><div align="center"><img src="mm/stationery/CatalogB/golf ballistics.jpg" width="700" height="200"></div></td> </tr> <tr> <td height="97" align="center"><table width="72%" height="35" border="0" cellpadding="4" cellspacing="4"> <tr bgcolor="#CCCCCC"> <td bgcolor="CCCCCC"> <div align="left"><strong><font face="Tahoma"> </font></strong> <div align="center"> <div align="center"> <pre> <strong><font color="#339966" face="Tahoma"> </font></strong></pre> <pre><strong><font color="#339966" size="3" face="Tahoma"><a href="www.example.com">Home Online shopping forum Equipment </a> </font></strong></pre> </div> </div> </div></td> </tr> </table> </td> </tr> </table> <table width="399" height="612" border="0" align="center" cellpadding="4" cellspacing="0"> <tr valign="TOP"> <td width="19%" rowspan="2" valign="top" bgcolor="CCCCCC"> <p align="center"><font face="Tahoma">Harrington Tops Woods</font><br> <br> <img src="woodsharrington111906_400.jpg" width="195" height="201"></p> <p align="center"><nobr><font face="Times New Roman, Times, serif">: <ABBREV>Padraig Harrington made a dramatic late comeback to catch Tiger Woods, then beat the world's No. 1 player on the second playoff hole Sunday to win the Dunlop Phoenix tournament in Japan. Both players birdied the 72nd ho to shoot 67 and finish at 9-under-par 271: </ABBREV></font></nobr></p></td> <td width="38%" height="336" bgcolor="#CCCCCC"> <img src="tshirt.jpg" width="133" height="164"><br> <p><nobr><strike>Was £39.99</strike></nobr></p> <p>Now £15.99<nobr></nobr></p> <p><nobr><a href="#">Add to Cart</a></nobr></p></td> <td width="43%" bgcolor="CCCCCC"> <p><img src="DWTM110L.jpg" width="154" height="152"></p> <p><strike>Was: £299.99</strike> <br> </p> <p>Now: £99.99 <br> </p> <nobr><a href="#">Add to Cart</a></nobr></td> </tr> <tr valign="TOP"> <td bgcolor="CCCCCC"> <p><img src="nw.jpg" width="135" height="148"></p> <p><strike>Was: £199.99</strike> <br> Now: £99.99 </p> <p><a href="#">Add to Cart</a></p></td> <td bgcolor="CCCCCC"> <p><img src="cl.jpg" width="151" height="149"></p> <p><strike>Was: £149.99</strike><br> Now: £129.99 <br> </p> <p> <nobr><a href="#">Add to Cart</a></nobr></p></td> </tr> </table> <table width="92%" border="0" cellspacing="0" cellpadding="4"> <tr> <td width="0%" align="center" valign="top" bgcolor="#000099"> </td> <td width="100%" valign="top"> <p> </p> <table width="90%" border="0" cellspacing="4" cellpadding="4" align="center"> <tr bgcolor="BottomNavigationColor"> <pre><td> <a href="www.example.com"><align="center"> Contact us | Terms and conditions | Help </a></td></pre> </tr> </table></td> </tr> </table> <table width="92%" border="0" cellspacing="0" cellpadding="4" bgcolor="#999999"> <tr align="right"> <td bordercolor="#999999" bgcolor="#CCCCCC"><em><a href="www.example.com"><strong>Back to top</strong></a></em></td> </tr> </table> </body> </html> Hi all, I am quite new to HTML and i'm not too sure what I have done wrong. On one of my website pages I wanted to display 4 pictures in a grid of 2 by 2, this works fine but the text does not sit right. It is going up the middle of the pictures. How do I get it so that the text stays below the pictures and not going in between them? My website is www.flobbadobba.co.uk and the page I am having this issue with is the jigsaw puzzle page (www.flobbadobba.co.uk/puzzles.html) at the moment it is just this page that I am having the issue with but I'm sure I will get the issue on other pages later as I plan to do some similar layouts. Any help will be great. Simon Hello everyone I am very new to this so be kind! Why can I only see code on this page and what do I do to put it right? http://www.test.q-p-e.co.uk/jobby.html Hi guys, new to the forum. Trying to put together a portfolio site: http://www.studioeighty.co.uk/portfolio/ I'm using a program called Coda-Slider which is JavaScript but for some reason only one of the arrows is showing. Any ideas where I've gone wrong? thanks in advance. studioeighty O.K, I'm building my new website and using smart FTP client to upload my files. Please take a look at the website I'm building, how come it is like this? www.hautecoutureforkids.com When I click the .html buttons it works, but I don't want it like that. I want when I type in my website's name, the page appears automatically. I hope my explaination is not confusing. Please help Thank you in advance Ning If I type this URL into my browser location bar, it works just fine, and displays the image properly: http://www.zappos.com/n/multi_view.c...223&view=multi If I use the same URL in the following code on an html page and render it in the browser, no image displays: <img src="http://www.zappos.com/n/multi_view.cgi?product_id=7558977&color_id=205223&view=multi"> What am I doing wrong? I've tried encoding it, but that didn't fix the problem. Can someone please help? I'm sure I'm missing something completely obvious. Thanks, Janet Hi All, I was hoping to start a site from scratch and muddle my through any issues that came up. I came across this article about how to auto size the background image and thought that it would give me a perfect start as I could get a nice background that would auto resize. http://css-tricks.com/perfect-full-p...kground-image/ I dunno what I am doing wrong but the background image never displays. Is anyone able to create me some test files that I can simply dump on my server and see if it works. Sounds silly i know but I cannot get the image to display and I am not sure why! Thanks Hey Guys I am trying to find the correct spot in the following link to add the no follow tag I tried as it is but my software on my site tells me its still do follow any help appreciated http://www.amazon.com/gp/product/B003VQQVDU/ref=as_li_ss_tl?ie=UTF8&tag=facdirjewclu-20&linkCode=as2&camp=217145&creative=399349&creativeASIN=B003VQQVDU" rel="nofollow">VIZIO M221NV 22-Inch Full HD 1080P LED LCD TV with VIA Internet Application, Black</a><img src="http://www.assoc-amazon.com/e/ir?t=&l=as2&o=1&a=B003VQQVDU&camp=217145&creative=399349" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> Could you highlight where I have to put the no follow tag and if there needs to be a space like there is above thanks Hello. I need to know what i'm doing wrong in this code. Code: <html> <title>CoAlliance</title> <head><img src="banner.jpg"></head> <body> <table border="0" style="float: left;"> <tr><td><img src="button1.jpg"></td></tr> I added a banner, and when I add a picture for a button, I can't see it. Help me please. |