PDA

View Full Version : setting url



Netjunky
Sep 19th, 2009, 01:39 AM
how do i set the url for my webpage?

where do i put the url?

this is my 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>The One Change</title>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('home_f2.gif','board of directors_f2.gif','youth concil_f2.gif','Celebrations_f2.gif','Environment_f2.gif','Statistics_f2.gif','health_f2.gif','forms _f2.gif')">
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="one chance banner.jpg" alt="One Change" width="746" height="201" align="absmiddle" /></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="the one change.png" width="170" height="170" align="middle" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="the one change.png" width="170" height="170" align="middle" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="the one change.png" width="170" height="170" align="absmiddle" /></p>
<p>&nbsp;</p>
<p><br />
&nbsp;&nbsp;&nbsp;<a href="One change.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','home_f2.gif',1)"><img src="home.gif" name="Image13" width="147" height="31" border="0" id="Image13" /></a><a href="Board of Directors.html" onmouseover="MM_swapImage('Image6','','board of directors_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="board of directors.gif" name="Image6" width="173" height="31" border="0" id="Image6" /></a><a href="Youth Council.html" onmouseover="MM_swapImage('Image7','','youth concil_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="youth concil.gif" name="Image7" width="185" height="31" border="0" id="Image7" /></a><a href="Celebrations.html" onmouseover="MM_swapImage('Image8','','Celebrations_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Celebrations.gif" name="Image8" width="178" height="31" border="0" id="Image8" /></a><a href="Environment.html" onmouseover="MM_swapImage('Image9','','Environment_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Environment.gif" name="Image9" width="186" height="31" border="0" id="Image9" /></a><a href="Statistics.html" onmouseover="MM_swapImage('Image10','','Statistics_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Statistics.gif" name="Image10" width="161" height="31" border="0" id="Image10" /></a><a href="Health.html" onmouseover="MM_swapImage('Image11','','health_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="health.gif" name="Image11" width="163" height="31" border="0" id="Image11" /></a><a href="Untitled-2.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','forms_f2.gif',1)"><img src="forms.gif" name="Image12" width="153" height="31" border="0" id="Image12" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','home_f2.gif',1)"><br />
</a></p>
<p>&nbsp;</p>
</body>
</html>

redspyder
Sep 19th, 2009, 03:19 AM
I think you are getting confused about url's.

It's dependant on your domain name, you don't "set" it in your code.

Assuming you've called that file index.html, when it's uploaded to your hosting account, it's url will be http://www.yourdomain.com/index.html

redspyder

Netjunky
Sep 19th, 2009, 04:15 AM
I think you are getting confused about url's.

It's dependant on your domain name, you don't "set" it in your code.

Assuming you've called that file index.html, when it's uploaded to your hosting account, it's url will be http://www.yourdomain.com/index.html

redspyder

yeah im confused i did just about every turorial on making a webpage,xampp,php and so on but none of them tell you what you really have to to get to look at your webpage and test it to see if all of it works

i think they hold back information just to confuse ppl.

where exactly do you "set" your domain name in?

Netjunky
Sep 21st, 2009, 02:22 AM
ok got a domain and a host server now


where on the host server do i put my web page files?

i am using hosthelper server if thats important.

redspyder
Sep 21st, 2009, 02:30 AM
hi netjunky,

You should have information from your host about where to put your files.

You need to put them in the "root", with many hosts it's a folder called public_html but it varies.

redspyder

oracleguy
Sep 21st, 2009, 04:36 AM
If you are using xampp on your computer to test your webpages, the URL you would use is http://localhost

Netjunky
Sep 27th, 2009, 04:38 AM
problem solved