HTML - Calling Css And Jscript Doc's With Extensions
Hi there
Going through the source code of reddit.com, I found that they appear to be calling jscript and CSS doc's with extensions, for example: Code: <script type="text/javascript" src="/static/jquery.js?v=c0c532defed6aa4be13f0496ae13f097"> And: Code: <link type="text/css" href="/static/reddit.css?v=79f52686b6e52d3db3bddb54e3852e84" rel="stylesheet"> What does the ?v=# do? Thanks Similar TutorialsHello all, I have a quick question if someone can help. I notice on most sites when you go to a link for instance: "www.samplesite/photos". It looks like that! But on my site I have to write www.vysualyzeinc.com/home.html I want it so that the .html is not at the end of every page. Its not listed on my index page: www.vysualyzeinc.com so I dont understand why I have to put .html after all other pages. Can someone help me out on how to remove that extension for the web. I use notepad to edit my html pages and Ive tried just about everything I can think of. Thanks so much! Most home pages are (I guess) index.html. If you type http://websitename into your browser, the browser automatically loads the index.html file. I use server side includes (SSI) for header and footer, and this, I understand, require the file extension to be shtml instead of html. My question is, if I want to use the SSI on the home page, and I rename it index.shtml, does this cause any problems? I know it works, but does it (a) slow things down while the browser searches for a index.html file first, or (b) cause any other difficulty? Thanks I have a webpage and i want to call another HTML page to insert at the botom. As i use the other webpage as a popup sometimes i can not copy the code and remove. Hope someone can help I want two divs to change colour when I hover over one of them. I tried on the first one: <div onmouseover="this.style.background-color:#FFFFFF; #other.style.background-color:#FF0000;"></div> but that didn't work. I think this is called 'calling' the div. Can anyone help? Hi, Why isn't the following code calling the validateForm function? I am new to this so I am lost. And please excuse the messyness of the code as it is a work in progress. N.B. I have obviously taken out a lot of code but I think this is all I need to show you for you to be able to help <script language="JavaScript" type="text/JavaScript"> function validateForm(pform) { checkFirstNames(pform.firstNamesField.value); checkLastName(pform.lastNamesField.value); checkCurrentEmp(pform.currentEmpField.value); checkEmailAddress(this.emailAddressField.value); checkJobTitle(pform.jobTitleField.value); checkDegrees(pform.degreeField.value); checkApplication(pform.applicationField.value); checkAddLanguage(pform.addLanguageField.value); checkWebPage(pform.webPageField.value); } </script> <title> Job Application </title> </head> <body background="images/Border1.png" bgcolor="#ffffff"> <table width="500" cellspacing="2" border="0" id=menuTable> <tr><td> <table width="320" cellspacing="2" cellpadding="2" align="left" border="0"> <tr><td colspan=2><h3>Menu</h3></td></tr> <tr><td><a href="default.html" >Homepage</a></td></tr> <tr><td><a href="Application_Submit.htm" onclick="alert('Apply for a Job button clicked. Reloading page')"/>Apply for a Job</a></td></tr> <tr><td><a href="back.html" onclick="alert('Job Submission button clicked but is unoperative at this time')"/>List all Job submissions</a></td></tr> <tr><td><a href="back.html" onclick="alert('Lastest Submission button clicked but is unoperative at this time')"/>Show latest submission</a></td></tr> <tr><td><a href="help.html">Help</a></td></tr> </table> <table width="380" cellspacing="2" cellpadding="2" align="right" border="0"> <tr><td><form name="JobApplication" action="javascript:alert('Submit button clicked')" onsubmit="return validateForm(this.emailAddressField.value)"> Hey guys.. im fairy new to html and javascript. the problem im having is.. i want to use a hyperlink from one page to redirect me to another, but once the second page is loaded i want to call a changeLocation() function that i have written to change the focus of the screen on a map. ive been googleing a lot and have played around with code like a href="blah.com/index.php?id=593#" onclick="changeLocation()" but am yet to have any luck..any help would be much appreciated, jared. I have a website that needs to display a meeting day and location for a group meeting. The area this is displayed (and the format) is the same for each page of the site. Typing this into the code for each page whenever a location changes is a pain in the ass and I would like to just edit a text(or other simple format file) to have it call and display the text on all pages. I don't want to call up a whole page in a frame though. That looks terrible and the site is nice and sleek Thanks for the help! I have a html form which calls a servlet when a submit button is clicked.Now,I want to display a CONFIRM FORM before calling the servlet. The form must call the servlet only if the OK button is clicked in the confirm form. Any suggestions please!! I am trying to detect a change in an iframe (to a different particular source) and when this happens refresh the outer ( top ?) frame that contains the iframe. Do I need to do this via javascript? both frames are actually php thanks in advance Hi guys, im trying to setup a simple website for my football team and ive run intio a small problem. I originally had the Navigation code on every page but started to get annoying when i wanted to make changes etc. So by following the FAQ he http://bonrouge.com/~faq#includes I thought id found the answer to my problem but i cant seem to get it to work. The below code is contained in a file called menu.htm <div id="navigation"> <h2>Navigation</h2> <ul> <li><a href="home.htm">Home</a></li> <li><a href="squad.htm">Squad</a></li> <li><a href="fixtures.htm">Fixtures</a></li> <li><a href="matchReport.htm">Match Reports</a></li> <li><a href="news.htm">News</a></li> <li><a href="sponsorship.htm">Sponsorship</a></li> <li><a href="motm.htm">Man of the Match</a></li> <li><a href="forum.htm">Forum</a></li> </div> My code for the first page called "home.htm" is as follows <!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> --> <html> <head> <title>Pavilion FC</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="myCSS.css" rel="stylesheet" type="text/css"> </head> <body> <div id="logo"> <h1></h1> <p> </p> </div> <!--#include file="menu.html"--> </body> </html> Is this code meant to have the comments round it? Should it be in the HTML or CSS file? I also tried converting the files to PHP and usign the line <?php include 'menu.php'; ?> but that didnt seem to work either. Both times the menu just doesnt appear. Im using firefox to view the files offline before uploading, so that id upload it anyway to see if php needed to be enabled or soemthing but still doesnt work. Thank you Administrator for this platform to ask questions! In the past, I use to use a 'Random Banner' cgi script. I was doing this to insert HTML in various pages on my site. Now I would only insert ONE set of html codes. Reason being, is that I wasn't looking to rotate banners, ....I was merely looking for the ability to update/change/insert codes in one location, and have it update every relative page. Thus sparing me from updating every page individually. I know this technique must me a dinosaur. Is there a script, or a type of script I should be researching that would allow me to enter HTML codes, and then have those codes instantly inserted/update all related webpages. Even in this most simple state; are they HTML codes that can call/insert other HTML codes from a remote file (such as a .txt)?? Thank you for you help and wisdom! Dear Forum-goers, If I knew what to search for I would, but I don't know what this idea is called. I want to create a website with code that does the following: <body> (INSERT FROM OTHER HTML FILE: Page introduction) (INSERT FROM OTHER HTML FILE: Content) (INSERT FROM OTHER HTML FILE: Sidebar) </body> Is there a way to do this? If not, then okay. I've tried using <link />, which doesn't do the job. You'll see the line in question in blue font: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>This is the main page.</title> <link type="text/css" rel="stylesheet" href="journal.css" /> </head> <body> <link type="text/html" rel="content" href="tobelinked.html" /> </body> </html> |