HTML - To Execute An Html And Javascript With One Click
Greetings
Please is there a way to execute these two scripts bellow, one of them is html and the other is javascript, with one click: <input type="button" onClicK="top.clearCountings(), top.clearIt()" value="CLEAR TABLES AND INTERNAL COUNTERS"> <a href="lottoDown.html" target="lottoDown">CLEAR RIGHT FRAME</a> Both belong to this: http://2move.me.uk/londoner.html Regards Similar TutorialsRecently other users and I brainstormed over at PSP forums. Many users want a youtube application for the psp, but the ram and memory simply wont allow it. Many websites offer an online youtube converter but these tend to take a while to convert, as well as wanting the url for the youtube video. The psp has no copy/paste function so it makes it rather hard to re-type a url with an on screen keyboard. There is already a youtube application for hacked/homebrew psp's, but it is rather laggy, and commonly putting homebrew on your psp will cause it to brick, and un-bricking can be expensive. The psp has a web browser which allows for you to run you own local files without using an internet connection, this means that we can open a local html file without using an internet connection. The other users and I stumbled across the following article http://googlesystem.blogspot.com/200...mp4-files.html It seemed like the perfect solution, but bookmarklets don't work on the psp. So we tried executing the javascript string through a html file, but to no avail. It only loaded a blank page that was running the javascript, instead of a youtube video with a download link. When the bookmarklet is used on a computer to download the video it works fine and the video plays in perfect quality when transfered to the psp. Conclusion: We would like some aid in creating something that will accomplish the goal of running the piece of javascript code so that we can simply choose a video to watch, download it (Yes, the psp can download files to its memory stick straight through the web browser), and watch it. None of us are that experienced in the coding field and if you could help us out, it would be greatly appreciated. If you wished to simply make the whole thing yourself, go ahead. Fell free to put your name and website all over it, as long as it works. If you were to make this work your creation would be used worldwide by hundreds of thousands. You have no idea how many people want this to work. I will answer any questions you have about supported file types and such. Thank you for taking the time to read this. Ok i'm making a Runescape Server Status Checker for private servers If you dont know what that means well.... it doesnt matter all i need is this on a button called add server theres something that asks for Server Name: ____________ Server IP : _______________ Server Port : ________________ Server Description :______________________________ Button = "Add Server" I want it so when you add the server by clicking that button it adds it to the list. I have teamviewer. Now for the pics. Thats the thing where you add server info like above. Homepage so you understand where i want to add the info So if anybody can help then i dont know what i could give you in return ill think of something maybe... i want to make appear in a text box an item from a list box when i choose what item i want. <select size="1" name="s1" class="clsSelect"> <option selected="selectd">cod_artigo</option> <option>desig_art</option> <option>pr_compra</option> <option>num_enc</option> <option>mda</option> <option>quantidade</option> <form name="1" action="condicao1.php" method="post"> <textarea cols="55" rows="4" name="txt2"></textarea> </form> Please help me! xD im a noob xD Hi I have site it has windows media player embeded in it, it plays some live stream, I want page to load than stream to load it take about 5 seconds to load, I want html code to double click on windows media player so it will be full screen automatically without user doing it. Please help me Thank you. Hi guys, I am working on a site and one of the pages has a weird issue. Sometimes, you cannot click in to: First name: Last name: E-mail: Phone : It is weird, as it usually affects 2 fields at a time and appears to happen randomly. Occurs in IE7 and Konqueror (KDE browser), but not in Firefox. If someone could tell me what is causing the problem, that would be perfect! The page in question is: http://www.premiumdjs.com/contact.php Thanks! hi all, One strange issue with html <a> tags.We have XP English and Japanese machines and issue is getting only in XP Japanese machines. Issue is tat on clicking any link,link font size gets increased and its comes over other links.Its like a new layer of big font sized links over the old links. Any idea why this happens? Following is my JSP section ============================= <div onselectstart="return false" id="systemMenu" style="position:absolute;top:-75px; left:-20px; "> <label>Screen # : </label> <input tabindex="1" suggest_sel_event="selectScreenIdValue" type="text" title="Provide screenId and Hit Enter key" id="screenIdEntry" name="screenIdEntry"/> <button tabindex="-1" id="SUGGEST_screenIdEntry" onclick="suggestScreenIds()"></button> | <a tabindex="2" href="javascript:selMenu('showHomePage.do','PARENT','')">Home</a> | <a tabindex="3" href="javascript:doHelpFunc()" onmouseover="">Help</a> | <a tabindex="4" href="javascript:aboutiCargo('<%=mainWebBuildVersion%>')" onmouseover="">About</a> | <a tabindex="5" accesskey="o" href="javascript:exitlogOffIcargo(ctxPath+'/logout.do','logOffApp')">Lo<u>g</u>off</a> | <a tabindex="6" accesskey="x" href="javascript:exitlogOffIcargo(ctxPath+'/logout.do','exitApp')" >E<u>x</u>it</a> </div> =================================================== CSS Used In the page ===================== <STYLE> body{ margin:-1px; scrollbar-base-color: #C6CEDE; scrollbar-arrow-color: #000000; scrollbar-track-color: #C6CEDE; scrollbar-face-color: #C4CED9; scrollbar-highlight-color: #C6CEDE; scrollbar-shadow-color: #C6CEDE; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; } #footer{ position:absolute; left:1%; top:99%; width:97%; text-align:center; font-size : 8pt;font-family : Arial,Verdana,Sans-Serif; /*font:menu;*/ color : #000000; /*background-color:#CCCCCC; */ } .footer{ text-align:center; font-size : 8pt;font-family : Arial,Verdana,Sans-Serif; /*font:menu;*/ /*background-color:#CCCCCC; */ } div.footer table{ border-collapse:collapse; padding:0px; word-spacing : 0px; width: 99%; /*100% of container produces horiz. scroll in Mozilla*/ border: 0px; } div#systemMenu{ color:#ffffff; font-weight:bold; } div#systemMenu button{ border-collapse:collapse; color:#ffffff; font-weight:bold; font-size:12px; border: 0px none; background-color:1F3E6C; width:0px; height:0px; } div#systemMenu input{ /*font-family : Arial,Verdana,Sans-Serif; font-size : 8pt;*/ font:menu; width : 75px; height : 15px; color : #000000; text-transform : uppercase; background : #ffffff; border-right-width : 0px; border-bottom-width : 0px; border-left-width : 0px; border-top-width : 0px; border-top-style : none; border-left-style : none; border-right-style : none; border-bottom-style : none; border-collapse:collapse; } div#systemMenu label{ border-collapse:collapse; color:#ffffff; border: 0px none; background-color:1F3E6C; text-decoration : none; /*font-weight:bold; font-size:12px;*/ /*font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;*/ font:menu; } div#systemMenu a{ border-collapse:collapse; color:#ffffff; border: 0px none; background-color:1F3E6C; text-decoration : none; /*font-weight:bold;font-size:12px;*/ /*font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;*/ font:menu; } div#mainErrorDiv table{ padding:0px; word-spacing : 0px; width: 99%; /*100% of container produces horiz. scroll in Mozilla*/ } /*********************************FONT STYLES********************************/ .iCargoRedText { font-family : Arial,Verdana,Sans-Serif; font-size : 10pt; color : #336666; font-weight : bold; } .iCargoSmallText { font-family : Arial,Verdana,Sans-Serif; font-size : 7pt; color : #000000; } .iCargoPageText { font-family : Arial,Verdana,Sans-Serif; font-size : 10pt; color : #000000; } .iCargoErrorMessage { font-family : Arial,Verdana,Sans-Serif; font-size : 9pt; color : #336666; list-style-position : outside; list-style-type : square; } .iCargoInfoMessage { font-family : Arial,Verdana,Sans-Serif; font-size : 9pt; color : #000000; } div.loadBox { /*font-family: Arial, sans-serif; font-size:9pt;*/ font:menu; color: #FFFFFF; border: 0px none #FF3E3E; background-color: #1F3E6C ; text-align: center; position:absolute; } </STYLE> I have an HTML button on my webpage. When the button is clicked it opens the URL link. <input type="button" value="home" onclick="main.location.href='http://www.srisri.org'"/> I want to modify the button such that after clicking the button not only opens the webpage but also the font of the button changes to bold red. Hello Friends, Plz let me know how to hide content before clicking on Submit Button, the message should be displayed in a new pop up window only if we click on Submit button. Plz let me know hot to write the code for this.... Im not sure if this is posted in the right place but anywho im just wondering if this is possible (note:im a total noob) i have a table HTML Code: <table border="0"> <tr> <!--the embed code of a youtube video--> </tr> <tr> <p> video #1<br /> video#2 <br /> video#3 <br/ > and so on </p> </tr> and im wondering if its possible to click on one of the video #1,2 or 3 and set a javascript variable to a certain amount and change the embed code of the youtube video corresponding to the video # you selected. Is this possible or am i dreaming?? Thank You, why789 Heya, This is my first post on the forums =] I just wanted to ask if anyone knew a code that produced a clickable button on your website that when clicked by a website visiter raises the number of a visable counter by 1? And, if possible one that could only be pressed once by the same IP address or Computer. I hope this is clear enough =] I don't mean a site counter that raises the number everytime someone comes onto the site. at least10 I am creating a mobile website (yes it uses script...yes i know thats not universal). Anyway. I have a picture of a car with call outs on it...the call outs all of a corresponding link below the car that is an accordion drop down. I want to be able to press on the number that has to do with say fuel tank...and have it actually open that section not just take me to where it is... test link is www.schenkhampton.com/airtex2/fueldelivery.html Any ideas would be appreciated. Matt I've run into a problem. I've got hyperlinks triggering a JS function, using this code: Code: <A href=javascript:MyFunc()>Clickable text</A> The JS function I'm triggering is used to artificially update the browser history. (This is because of AJAX requests, and I'm doing it using the Really Simple History library.) Now, unfortunately, updating the browser history triggers IE's "click" sound. That would be fine except the hyperlink also triggers that sound, so you get two clicks in close succession! If possible I'd like to disguise one of them so you only hear one click. I can do this by triggering the JS function with a FORM button instead of a hyperlink. But then you lose the CSS attributes that you can decorate hyperlinks with. I want it as much as possible to look like a normal website. So what I'm after is a way to make clickable, "decoratable" text that triggers JS without triggering the click sound. In other words, a silent hyperlink. Is there such a thing? Thanks in advance, Seymour. Hello all, whenever you make the hyperlink to a file, normally it will give you the option to either download or run. Is there some way to make the hyperlink go straight into opening(run) the file? maybe some sort of onclick command or something of that nature? Thanks in advance. I am a beginner in html and the problem is that the following html code is not working i.e. the code when pasted on a website doesn't get executed to display the image but shows the code as text instead. Other html tags display just fine. img src <http://i40.tinypic.com/1z5kwic.jpg> The image is in public domain. No firewall/ proxy is enabled. Hi All, This doesn't completely relate to HTML, I am more asking questions about Javascript but are related to HTML and CSS. Anyways here are my questions: 1 - Can you create a javascript file (.js) with out using HTML? If so how would you view this file? 2 - Can you link a CSS file to a Javascript file? 3 - Is there a certain program which is dedicated to view/making Javascript files? 4 - Is it legal to call a program that I make JavaScript Beam? and have copyrights to the name JavaScript Beam? If that is illegal then would it be legal (inclduing copyrights) to call the program I make JS Beam? Thanks hi, I'm not sure if its javascript that does it or any other language, but I being googling an cant find it.I am building a site and wanna create a "question sign" ? that when users hover over it , a dialogue box appears explaining what it is.I'm sure most of us have seen it on some site or the other. what I am looking for is like http://www.alexa.com/siteinfo/linuxquestion.org where it says,"Alexa traffic rank" and you hover over the question sign.Thats exactly what I want Can I get some help or links to text on how to create one? Thank you I want to have a similar feature that this page has http://dtlr.com/shoes/shoes.html only the part that has the 4 thumbnails of the cropped shoes and then the larger image of the shoe next to it. Is this possible to build with html or javascript or is advanced css or something else needed? thanks Why can't this HTML Code: HTML Code: <table class='tableborder' cellpadding='6' cellspacing='1' border='0' width='100%'><tr><td class='maintitle' colspan='3' style='text-align:center'><a href='/index.php?showtopic='+ topicid +'' title='View the thread'>'+ maintitle +'</a></td></tr><tr><td align='center' class='row2' border='0'>Winner's Avatar</td><td align='center' class='row2' border='0'>Winner's Entry</td><td align='center' class='row2' border='0'>Winner's Prize</td></tr><tr><td align='center' class='row4' border='0'><a href='/index.php?showuser='+ userid +''><img src=''+ avatar +'' border='0' alt=''+ username +''s Avatar' /></a></td><td align='center' class='row3' border='0'><img src=''+ signature +'' alt=''+ username +''s Entry' /></td><td align='center' valign='middle' class='row4' border='0'><fieldset class='fieldset'><legend>Prize</legend><div><b>Name:</b> <a href='/index.php?showuser='+ userid +''>'+ username +'</a></div><div><b>Prize:</b> '+ prize +'</div><div><b>Admin Rating:</b> <img src=''+ ratimg +'' alt=''+ opinion +'' /></div><div><a href='/index.php?showtopic='+ topicid +''>Click here to visit the thread.</a></div></fieldset></td></tr></table> Go into JavaScript like this: HTML Code: <script> var topicid = ''; /* Something in here. */ var maintitle = ''; /* Something in here. */ var userid = ''; /* Something in here. */ var avatar = ''; /* Something in here. */ var username = ''; /* Something in here. */ var signature = ''; /* Something in here. */ var prize = ''; /* Something in here. */ var ratimg = ''; /* Something in here. */ var opinion = ''; /* Something in here. */ document.write('<table class='tableborder' cellpadding='6' cellspacing='1' border='0' width='100%'><tr><td class='maintitle' colspan='3' style='text-align:center'><a href='/index.php?showtopic='+ topicid +'' title='View the thread'>'+ maintitle +'</a></td></tr><tr><td align='center' class='row2' border='0'>Winner's Avatar</td><td align='center' class='row2' border='0'>Winner's Entry</td><td align='center' class='row2' border='0'>Winner's Prize</td></tr><tr><td align='center' class='row4' border='0'><a href='/index.php?showuser='+ userid +''><img src=''+ avatar +'' border='0' alt=''+ username +''s Avatar' /></a></td><td align='center' class='row3' border='0'><img src=''+ signature +'' alt=''+ username +''s Entry' /></td><td align='center' valign='middle' class='row4' border='0'><fieldset class='fieldset'><legend>Prize</legend><div><b>Name:</b> <a href='/index.php?showuser='+ userid +''>'+ username +'</a></div><div><b>Prize:</b> '+ prize +'</div><div><b>Admin Rating:</b> <img src=''+ ratimg +'' alt=''+ opinion +'' /></div><div><a href='/index.php?showtopic='+ topicid +''>Click here to visit the thread.</a></div></fieldset></td></tr></table>') </script> So I want to make an image that has mouseover tables that pop up. This is what the code looks like now: Code: <html> <table> <tr><td><img src= "pic.bmp" usemap="#mapareas"/></td></tr> </table> <map NAME ='mapareas'> <script language='JavaScript' type='text/javascript'> function show(id) { document.getElementById(id).style.visibility='visible'; return true; } function hide(id) { document.getElementById(id).style.visibility='hidden'; return true; } </script> <area shape = "rect" coords="0,0,100,100" title="one" onmouseover='javascript:show('one') onmouseout='javascript:hide('one')> <area shape = "rect" coords= "150,0,250,100" title="two" onmouseover='javascript:show('two') onmouseout='javascript:hide('two')> <area shape = "rect" coords= "0,150,100,250" title="three" onmouseover='javascript:show('three') onmouseout='javascript:hide('three')> <area shape = "rect" coords= "150,150,250,250" title="four" onmouseover='javascript:show('four') onmouseout='javascript:hide('four')> <area shape = "default" title="The Rest"> </map> <table border=0 cellPadding=0 cellSpacing=1 id='one' style='position:absolute; left:10px; top:120px; background:lightGrey; visibility:hidden'> <tr><td>ONE</td></tr> </table> <table border=0 cellPadding=0 cellSpacing=1 id='two' style='position:absolute; left:10px; top:120px; background:lightGrey; visibility:hidden'> <tr><td>TWO</td></tr> </table> <table border=0 cellPadding=0 cellSpacing=1 id='three' style='position:absolute; left:10px; top:120px; background:lightGrey; visibility:hidden'> <tr><td>THREE</td></tr> </table> <table border=0 cellPadding=0 cellSpacing=1 id='four' style='position:absolute; left:10px; top:120px; background:lightGrey; visibility:hidden'> <tr><td>FOUR</td></tr> </table> </html> everything is ok when the page is first loaded, but when I try the mouseovers, firefox's error console gives me this message: "syntax error javascript:show(" and "syntax error javascript:hide(" Can someone help me figure out what is going wrong? Thanks |