HTML - Reducing The Size Of My Html Source Code
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? Similar TutorialsHi 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 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. Below is code that works fine, but I wonder if someone could help so that it opens in a full size window so that they don't have to resize the pop up. Thank you. <p><frameset frameborder="0" rows="10%,*"></frameset><frame src="menu.html"></frame><frame name="frame"></frame>Adjust the percentage to give your frames the right height. The first frame is pointing at your menu so here is menu.html :</p> <table align="center"> <tbody> <tr> <td> <form target="frame"> <select onchange="change(this)"> <option value="">Drop down 1</option> <option value="" selected="selected">Drop down 1</option> <option value="http://www.google.co.uk">Google</option> <option value="http://www.yahoo.co.uk">Yahoo</option> </select> </form> </td> <td> <form target="frame"> <select onchange="change(this)"> <option value="">Drop down 2</option> <option value="" selected="selected">Drop down 2</option> <option value="http://www.google.co.uk">Google</option> <option value="http://www.yahoo.co.uk">Yahoo</option> </select> </form> </td> <td> <form target="frame"> <select onchange="change(this)"> <option value="">Drop down 3</option> <option value="" selected="selected">Drop down 3</option> <option value="http://www.google.co.uk">Google</option> <option value="http://www.yahoo.co.uk">Yahoo</option> </select> </form> </td> <td> <form target="frame"> <select onchange="change(this)"> <option value="">Drop down 4</option> <option value="" selected="selected">Drop down 4</option> <option value="http://www.google.co.uk">Google</option> <option value="http://www.yahoo.co.uk">Yahoo</option> </select> </form> </td> </tr> </tbody> </table> <table> <script language=Javascript> function change(select) { if( select.options[ select.selectedIndex].value) { select.form.action = select.options[ select.selectedIndex].value; select.form.submit(); } } </script> <tbody> </tbody> </table> i have 2 frames in my parent frame say 1.htm ie left frame and 2.htm ie right frame now this 1.htm is quite a long frame and has a scrollbar and 2.htm is a short one i dont the scroll bar beside my frame 1 but want it to be for my entire parent window ie i wont to scroll both my left and right frames together how do i do that i 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> 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 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. 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'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? 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? 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. 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'm doing some homework for my basic html class and i put the code in the w3 validate and it keep's putting errors on my images what am i doing wrong? Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tyler East, ITSE 1411 Lab Project 1, Tutorial 1 Case 4, Due 02/09/2011</title> <!-- Body System's Home Gym Equipment Tyler East 2/4/2011 --> </head> <body> <img src="logo.jpg" alt="Body Systems" /> <hr/> <h2>Body Systems LSM400 Linear Smith Machine</h2> <IMG src="smith.jpg" ALT="LSM4000" /> <h2>Overview</h2> <p>Linear Smith Machines are the ultimate in weight machines and the LSM400 leads the field. Designed for both serious fitness users and beginners, the LSM400's vertical design provides all of the safety and control associated with Smith Machines, while still allowing for the effective use of gravity for effective resistance. You don't even need a workout partner. Lock points can be set to prevent the bar from movement outside of your body's natural range of motion.</p> <p>You can tailor the LSM400 to meet you specific workout needs. Start with the basic package of the Smith Machine rack and, as your needs grow, add a lat/row, pec dec, plate tree, dip, and accessory organizer. Accessories are easy to insert and remove, allowing you to continue your workout without delay. The LSM400 works with all standard Olympic weight plates</p> <p>The LSM400 is compact with all components place one side of the unit for easy access. This makes the LSM400 perfect for people who want a quality home gym, but do not have a lot of space. Place the LSM400 against a wall and you're ready to go!</p> <p><b>Features</b> Smooth Smith Action: The bar (rated at 800 lb. capacity) slides on Teflon bushings alongside solid steel guide rods. Smooth motion is key to successful workouts, as the target muscles are utilized to their full potential with each repetition.</p> <p><b>Proper Angle:</b> The bar travels along a 7 degree path from vertical. Studies have shown that this is the proper lifting angle to increase your comfort and prevent injury.</p> <p><b>Safety:</b> The LSM400 has 20 lock-out points for a safe, solid stop at any point in your workout routine.</p> <p><b>Rugged:</b> Constructed with heavy 12 gauge steel and 7 gauge reinforcing plate. This is a unit built to last.</p> <p><b>Warranty:</b> Every part of the LSM400 has a lifetime guarantee. We will replace or repair anything that goes wrong.</p> <b>Dimensions</b> <ul> <li>Width: 85"</li> <li>Height: 82"</li> <li>Depth: 72"</li> </ul> <b>Optional Attachments</b> <ul> <li>Selectorized Lat/Row station (Part: MA831-4)</li> <li>Pec Dec station (Part: MA218-6)</li> <li>Dip station (Part: MA105-3)</li> <li>Plate tree (Part: MA488-0)</li> <li>Accessory organizer (MA212-1)</li> <li>Workout DVD (MA051-1)</li> <li>Workout poster (MA055-3)</li> </ul> <address> Body Systems 401 Commercial Drive Eaton, TX 87015 (800) 555-2811 </address> </body> </html> Hi Guys/Guru's of HTML, I am trying to get my website onto the MOTD [Message of the day] which shows up on first entering the server. Then When this shows up people can browse through our website with ease. I have edited the MOTD.txt file to read: <html> <HEAD> </HEAD> <BODY><meta http-equiv="REFRESH" content="0;url=http://cfagaming.xippy.co.uk/</BODY> </HTML> Please give me something i have done wrong because it doesnt ****ING work (mind my language) and is really pissing me off. Please help HTML Gurus Thanks & Best Regards Daniel Hardaker I'm working on a web page that will offer a massive amount of content. I figured out I need upwards of 8000 pages to get the result I want. Now obviously thats a problem because all of those pages would just be duplicates of the main layout with different content in the same spot. Now say I wanted to change something on the main layout, I'd have to do it to every page! I thought I could use frames to solve this but from what I've heard its not the best route. There has to be a better way. All I know is HTML but if someone could show me the major benefits of another site programming language then I may consider learning it, but right now I would love to know if there is a better way to approach this with HTML. Hey would anyone be able to tell me how i can change the page size on html so that i dont have a scrollbar along the bottom of the page. what coding do i look for? do i need to look on the css or html? Thanks Looking for the html code for center text, and text size. I want to center some text and increase its size from normal. Can someone help me with this I just want to make a div style sheet that changes size on mouseover no javascript just html Please help i have created a page, and i will chk that in firefox, the height of that page is not fixed, but i go through with chrome, the page size is fixed with browser? how to avoid this??? this is the page template code #panelIMG{ position:absolute; width:844px; height:652px; z-index:1; left: 203px; top: 14px; background-image:url(template_bg.jpg); background-repeat:no-repeat; } Hello, My website needs a fresh-over, so I decided to fix everything up to the XHTML 1.0 Standard. While doing that, I've also been trashing some of the old layouts and trying to make my website more clear & surmountable, both for the search engines & the surfing user. When working on the links page, I ran into problems though. The table and images simply didn't do the same I wanted them to do, and I've been trying several re-designs to make things alright again. Here is what I've got until now (Image Removed): (A) The content on the website, is not taking 100% width & height. If I use 100% & 100% height on the page, I'll just get this. (B] The table needs the same width as the body (100%). But I am still unable to use neither width or height, as it looks like they don't really do any matters in this case. There must be a bug somewhere inside the HTML or CSS Code, that makes this page very hard to give layout. I just cannot find it myself, so I am asking for your help. It can be because I am using a wrong attribute or tag to create the layout of my website, but I am sure that you got more knowledge on that area, than I. You can see the webpage yourself by clicking on the below URL: Link Removed Thank you, Urnemanden |