HTML - Running A Script From The Source Code
Hello,
First off, I'd like you to forgive any and all misconceptions I may have/make in this, as I know as little as possible about html for me to actually post this. Currently I have open the source of a website, (let's call it Site), and in this code I have narrowed down the script (function?) that is called when you click on a button (Button). Is it possible for me to somehow use the source code to call this function/script, simulating the button being pressed? I plan to make a "simple" program to move through Site as a project/practice and this is the point I'm starting at. Gotta start somewhere. Thanks, paradigm Similar Tutorialsi created a password protected forum to mess around with, but I've learned that if you just hit View Source its pretty obvious that the <var password=...> will tell you the password. Now ik that you can do these crappy encodings that would slow down getting the password by about 2 minutes but is there anything out there that will actually STOP people from viewing the source code indefinately? P.S. My Code: HTML Code: <b><font color=red><font size=5>WINTER IS COMING: HENCE THE SNOWFLAKES</center></b> <html> <body background="http://thenetworkstation.net/custom/bg-long.jpg"> <font size=3> <head> <script language="javascript"> <!-- function PlanA() { var password = "1883" var pass = prompt("Please Enter The Password To Gain Access To The Site"," ") if (pass.toLowerCase() == password) { window.location = "http://hiddenforum.darkbb.com/correct-password-h3.htm"; } else { window.location = "http://hiddenforum.darkbb.com/wrong-password-h2.htm"; } } --> </script> </head> <body> <p><center> <marquee behavior=alternate width="250" scrollamount="7" scrolldelay="96" height="20" bgcolor="#E0FFFF"><font size="3">Welcome to the Hidden Forum </font></marquee> <font color="white"> The Password Changed Regularly So Be On Regularly To Be Notified Before A Change</center></p> <p><center>If You Get The Password Correct Then You Will Be Redirected To A Forum. <center><a href="#" onClick="PlanA(); return false">Click Here To Enter Password</a></center> <p><center>Please Take A Moment To Visit My Other Forum: <p><a href="http://www.tastymods.net/" target="_blank">TastyMods.net a Game Console Modding Forum</a></right> </body> <center><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/Ig74Ca-9zXQ?fs=1&%3Bhl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Ig74Ca-9zXQ?fs=1&%3Bhl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></center> </body> <!-- begin htmlcommentbox.com --> <div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div> <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/simple/skin.css" /> <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((typeof hcb_user !== "undefined" && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=406&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script> <!-- end htmlcommentbox.com --> <script> // Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=35 // Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD") // Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS") // Set the letter that creates your snowflake (recommended:*) var snowletter="*" // Set the speed of sinking (recommended values range from 0.3 to 2) var sinkspeed=0.6 // Set the maximal-size of your snowflaxes var snowmaxsize=22 // Set the minimal-size of your snowflaxes var snowminsize=8 // Set the snowing-zone // Set 1 for all-over-snowing, set 2 for left-side-snowing // Set 3 for center-snowing, set 4 for right-side-snowing var snowingzone=3 /////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS HERE /////////////////////////////////////////////////////////////////////////// // Do not edit below this line var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera function randommaker(range) { rand=Math.floor(range*Math.random()) return rand } function initsnow() { if (ie5 || opera) { marginbottom = document.body.clientHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = window.innerHeight marginright = window.innerWidth } var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() } function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) } for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </script> <BGSOUND SRC="http://www.maximumdonline.com/themes/benhill.wav"> </Script> <Ray: ><DIBBLE DONT TOUCH THE LINK BELOW> <Dib: ><LOL I WAS GOING TO DELETE> <Ray: ><If you ever decide to encrypt this page as well never encrypt that link either> <Dib: ><LOL - leave it un-encrypted but hide the password from the HTML so no 1 can see it through the source and no 1 will be able to crack!> <Ray: ><You wanna do that? coz i have no idea. lol.> <font size=0><a href="http://www.forumotion.com" target="_blank">forumotion.com</a> <?php for ( $counter = 0; $counter <= 10; $counter += 1) { echo "Hello World<br>"; } ?> 123 Spam Protector is a software to protect your web pages and prevent others from viewing and reusing your web page source code, including HTML source code, JavaScript, VBScript, text, links and graphics. Hey Guys, I am using the yahoo media player for one of my clients(musician) websites. I have the mp3's in my html code being pull in by the media player javascript. Is there a way I can hide my mp3 links in the source code so they cannot be downloaded? Any help would be greatly appreciated. Thanks! I am learning HTML partly through opening the source code and reading it. But I wanted to test something different today. I used the source code for a site with a horizontal menu with white letters. When I added it in a html editor (and also opened the source code through notepad), the menu showed up vertical and had just plain text with the standard blue color. Why does this happen, and why doesn't it show up exactly like it does on the website? Hi All, Quick question, Is there anyway you can stop people viewing your source code in there browsers? by that i mean im building a website and im spending alot of time on it and i dont want people to take bits and pieces from it......im kind of answering my own question here by saying no you cant but maybe someone else has a different view? Thanks I've got the source code pulled up and see the text that has the color code I want. But they've designated it in the CSS under H2. So how can I access the CSS in order to see the code for the color of the H2's? http://www.divx.com/en/win Thats the website I'm looking at, I want the code for the pink H2's on the website. Thanks. I'm pretty new to web design, but I've started making drop down menus using HTML and CSS. I get annoyed that every time I want to change the menu I have to go and change it individually in every single page. I am wondering if there is a way to create the code in an external file and link it into my pages, so that if I want to make a change, I can do it from one central file and have the change appear on each individual page. Is this possible? How can I do this? Hello, I just started working at a company and they have a website that was partially completed by someone else and have hired me to complete and make changes to it. It seems that most of the website was created in Wordpress, but some of it seems to be done by hand-coding. The website is at http://www.executivetravellink.com/ I was able to get the company's FTP information which shows me all of the files that are on the site and I can easily transfer over locally to work in say Dreamweaver for example. They want me to make some changes to the navigation bar up top where it has links to the Hotels, Flights, Cruises, etc. From looking at the code in the index.php file, which leads to other files, I wasn't able to figure out which file to open in order to make those changes. I'm not sure if this is possible, but from looking at the source code, would someone be able to know the answer to that? Any information that someone could give me would be certainly much appreciated. Thank You! I have a page which is actually displaying ASCII art I made. It was auto-generated and uses HTML ascii codes like $$$$$$ etc.... My question is, can I simplify the HTML code? Like in the example above there are 6 - $. Instead of writing the HTML like $$$$$$ isn't there a way to tell it to print 6 $ in a row thus making the HTML source smaller? Here's my problem: in my Adsense account a channel came up that I may have set up months ago. The channel name is "best side" and I cannot find the text in my HTML files stored on disk. How can I search my whole website for this search term but in the source code? Because that channel can be found in the original Adsense code in my site but I don't know on which page it is. Any ideas? P.S. I know I could view source of each page separately and search but I have too many pages and it would take me hours. hi im designing a we site by php i have a html form that collect some information from client an it has some script for hide or visible text box when user check a checkbox but when client run my page see a popup menu allowed blocked content.... i saw some site do this withou running this popup how can i do it? thanks Hello everyone, I need help and possibly suggestions to figure out what code or script a website is using, so that I may use it on mine. If you guys would be kind enough to go to this link, http://www.wowjutsu.com/world/... After you are there on the right hand side you will notice alot of little pictures, As you mouse over them a box appears that has some transparent proporties along with more information on that particular Item/Image that you moused over... And as you move the mouse but still stay inside that image, That box moves slightly with you.. I would like to impliment that on my site.. Would anyone happen to know how did they do that? thanks in advance, Digital Hello All, So, I have a website with a floating cart and it loads fine and works almost flawlessly lol. However, when a person has a bunch of items in their cart, and they want to minimize it for the rest of their browsing experience, every time a new page loads, or a refresh happens, the floating cart un-minimizes and expands out fully again displaying all the items. This can become very annoying during the shopping experience when you have a bunch of items loading and just taking up space in the browser. Therefore, I am wondering if their is some html or script that would save the minimizing in the floating cart, and carry it over to the next page, and the rest of the browsing on site? Thank you for any suggestions/help. I am new to HTML and script writing, but I am eager to learn. Hopefully in the future, I won't be paying for little changes like this every time I need one. Hello all, I am searching for the html code that will allow me to including a moving script at the bottom of my page. appreciate any help, JJ dear guys: i have a javascript code which shows 10 recent post of my blog by RSS, there is a advertise of that site at the bottom of it, some friend told me to add : <div> tags to it and define width and height for it and for the height change the number until the ad disappears... also he told me to put the flow on "hidden" but i don't understand much can u help me out? here is an example: Code: <script type='text/javascript' src='http://rssReader.com/code.php?t=1&back=_fff&color=_444&box=_fff&max=10&rss=http://sokkan.ir/post/rss/' ></script> Hi everyone does anyone know whats up withe the new look view source up the page options .......I can't seem to edit or add to my html sources as I usually can? Thanks! http://www.planetcellinc.com Just the home page, if you could spare a minute to view the source. I would like to get some comments on the quality (or lack thereof) of this code. Any and all comments are appreciated. Thanks, Jeff Hi, Is there eny way of hiding the source of my website If there is please reply. Thanks |