PDA

View Full Version : What's wrong with this...



montymtl
02-04-2006, 07:58 PM
<html>

<head>

<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>CIBPA</title>
<style>
<!--
div.Section1
{page:Section1;}
span.Normal1
{}
-->
</style>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
<link rel="stylesheet" type="text/css" href="anylink.css" />

<script type="text/javascript" src="anylink.js">

/***********************************************
* AnyLink CSS Menu script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script><meta name="Microsoft Theme" content="rmnsque 1011, default">
<meta name="Microsoft Border" content="tb, default">
</head>
<body>
<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">BURSARY</a>

<div id="anylinkmenu2" class="anylinkcss" style="width: 150px; background-color: lightyellow">

<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/BURSARY 2004.htm">2004</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/BURSARY EVENING 2005.htm">2005</a>

</div>

<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">GOLF</a>

<div id="anylinkmenu2" class="anylinkcss" style="width: 150px; background-color: lightyellow">

<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/PHOTOS GOLF 2003.htm">2003</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/FOTOS GOLF 2004.htm">2004</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/GOLF TOURNAMENT 2005.htm">2005</a>

</div>

<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">ACTIVITIES</a>
<div id="anylinkmenu2" class="anylinkcss" style="width: 150px; background-color: lightyellow">

<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/VENETIAN GALA 2005.htm">VENEZIA 2005</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/MONTREAL MUSEUM.htm">MONTREAL MUSEUM</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/PARASUCO.htm">PARASUCO</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/CONSOLE GENERALE.htm">CONSOLE GENERALE</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/CONSOLE GENERALE.htm">CONSOLE GENERALE</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/INTERNEMENT-FRANCAIS.htm">INTERNEMENT-FRANCAIS</a>
<a href="http://www.file:///C:/Documents and Settings/Joe/My Documents/My Webs/myweb15CIBPA/LOTERIE 2005.htm">LOTERIE 2005</a>

</div>

</body>

jscheuer1
02-04-2006, 09:11 PM
This looks wrong but could just be something I'm not familiar with:

<style>
<!--
div.Section1
{page:Section1;}
span.Normal1
{}
-->
</style>

Other than that, the href paths will never work on the web, they are local links, at best and may not even work locally. Most importantly though, without anylink.js available for inspection, there is no way to tell the problems, if any, with it.

Glen
02-04-2006, 11:42 PM
Should always use relevant paths unless absolutely necessary. Say an image you need is in the folder of the calling document and the image is in images folder, href="images/image.jpg" for example.

If you need to go up a directory first say your'e in a folder called files and need to access images folder, href="../images/image.jpg" for example.

Twey
02-05-2006, 03:45 PM
What's wrong with this...
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">:)

Glen: "Relative" paths, not "relevant" paths. Although we should hope they're that too :)

Glen
02-05-2006, 10:22 PM
Woops typo sorry about that, I completely missed it, thanks for correcting me.