View Full Version : Can't get Geocities to read .js file

03-11-2004, 09:51 PM
I'm really frausterated with this. I don't have any problems with running scripts on my site until now. The difference is I'm running a script were it sources to a .js file (src="menu.js") I don't know why it's not working. I uploaded the source .js file into my file manager. Anyways, I'm pretty sure the code is fine. Here's the source for the entire page (including the HTML) maybe I have something conflicting but I have no idea what would.



<script language="javascript" src="sniffer.js">

//Top Navigational Bar III v3.4.1.1b (By BrotherCake @ cake@brothercake.net)
//Permission granted/modified by Dynamicdrive.com to include script in archive
//For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com/
//This notice MUST stay intact for legal use

<script language="javascript1.2" src="custom.js"></script>
<script language="javascript1.2" src="style.js"></script>


<H4><FONT COLOR="000000">Welcome To Corey An<default>&ntilde;</default>a's
world of Crap</H2><Center>

<TABLE border="1">
<td><IMG SRC="virginmary.jpg"<td/>
<tH rowspan="2" cellpadding="3">
<SCRIPT LANGUAGE="Javascript" TYPE="text/javascript" SRC="http://www.tag-board.com/tagboard.js?boardname=Earthymoon"></SCRIPT>

<table cellpadding="2" cellspacing="0" border="0">
<td width="200" height="200" valign=top align=right>
<iframe src="http://www.tag-board.com/my.tag?name=Earthymoon" name="tag" width="200" height="200"
marginwidth="0" marginheight="0"></iframe>
<a href="http://www.tag-board.com/" target="_new">Powered by TagBoard Message Board</a>
<form action="http://www.tag-board.com/add.tag" method="post" name="tagform" target="tag">
<input type="hidden" name="name" value="Earthymoon">
<input name="tagname" maxlength="20"><br>
URL or Email<br>
<input name="tagurl" maxlength="100"><br>
Messages(<a href="http://www.tag-board.com/smilies/smilies.htm" onClick="return pop_up_smilies();" target="_blank">smilies</a>)
<textarea cols="24" rows="3" name="message" wrap></textarea><br>
<input class=button type="submit" value="TAG" onclick="return Clear_Last_Message_on_Submit();">


<tH> Hey everyone. As you can see,<BR> I'm revamping the site.<BR> It's slightly
messy, so watch your step.<BR> Let me know what you think. Things<BR> might not look or work right, but<BR> it will all make sense in the end.</tH>


<CENTER><FONT COLOR="red">Last Updated:</FONT>
<A HREF="today.htm">Today</A></CENTER>
<IMG SRC=http://visit.webhosting.yahoo.com/counter.gif ALT="Counter" ALIGN="right">

<script language="javascript1.2" src="menu.js"></script>


Oh, and here is the code from the custom file I altered
//**DO NOT EDIT THIS *****
if (!exclude) { //********

// http://www.brothercake.com/dropdown/
// Link-wrapping routine by Brendan Armstrong
// KDE modifications by David Joham
// Opera reload/resize routine by Michael Wallner
// http://www.wallner-software.com/
// This script featured on Dynamic Drive (http://www.dynamicdrive.com)

// *** POSITIONING AND STYLES *********************************************

var menuALIGN = "left"; // alignment
var absLEFT = 0; // absolute left or right position (if menu is left or right aligned)
var absTOP = 0; // absolute top position

var staticMENU = false; // static positioning mode (ie5,ie6 and ns4 only)

var stretchMENU = true; // show empty cells
var showBORDERS = true; // show empty cell borders

var baseHREF = ""; // base path to .js files for the script (ie: resources/)
var zORDER = 1000; // base z-order of nav structure (not ns4)

var mCOLOR = "lightblue"; // main nav cell color
var rCOLOR = "lightgreen"; // main nav cell rollover color
var bSIZE = 1; // main nav border size
var bCOLOR = "black" // main nav border color
var aLINK = "brown"; // main nav link color
var aHOVER = ""; // main nav link hover-color (dual purpose)
var aDEC = "none"; // main nav link decoration
var fFONT = "arial"; // main nav font face
var fSIZE = 13; // main nav font size (pixels)
var fWEIGHT = "bold" // main nav font weight
var tINDENT = 7; // main nav text indent (if text is left or right aligned)
var vPADDING = 7; // main nav vertical cell padding
var vtOFFSET = 0; // main nav vertical text offset (+/- pixels from middle)

var keepLIT = true; // keep rollover color when browsing menu
var vOFFSET = 5; // shift the submenus vertically
var hOFFSET = 4; // shift the submenus horizontally

var smCOLOR = "lightblue"; // submenu cell color

var srCOLOR = "lightgreen"; // submenu cell rollover color
var sbSIZE = 1; // submenu border size
var sbCOLOR = "black" // submenu border color
var saLINK = "black"; // submenu link color
var saHOVER = ""; // submenu link hover-color (dual purpose)
var saDEC = "none"; // submenu link decoration
var sfFONT = "comic sans ms,arial";// submenu font face
var sfSIZE = 13; // submenu font size (pixels)
var sfWEIGHT = "normal" // submenu font weight
var stINDENT = 5; // submenu text indent (if text is left or right aligned)
var svPADDING = 1; // submenu vertical cell padding
var svtOFFSET = 0; // submenu vertical text offset (+/- pixels from middle)

var shSIZE = 2; // submenu drop shadow size
var shCOLOR = "cccccc"; // submenu drop shadow color
var shOPACITY = 75; // submenu drop shadow opacity (not ie4,ns4 or opera)

var keepSubLIT = true; // keep submenu rollover color when browsing child menu
var chvOFFSET = -12; // shift the child menus vertically
var chhOFFSET = 7; // shift the child menus horizontally

var closeTIMER = 330; // menu closing delay time

var cellCLICK = true; // links activate on TD click
var aCURSOR = "hand"; // cursor for active links (not ns4 or opera)

var altDISPLAY = ""; // where to display alt text
var allowRESIZE = true; // allow resize/reload

var redGRID = false; // show a red grid
var gridWIDTH = 0; // override grid width
var gridHEIGHT = 0; // override grid height
var documentWIDTH = 0; // override document width

var hideSELECT = true; // auto-hide select boxes when menus open (ie only)
var allowForSCALING = false; // allow for text scaling in mozilla 5

//** LINKS ***********************************************************

// add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")

// add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")

// define submenu properties (width,"align to edge","text-alignment",v offset,h offset,"filter")

// add submenu link items ("url","Link name","_target","alt text")
addSubmenuItem("http://www.geocities.com/majas7/aboutme.html","About Me","","");
addSubmenuItem("http://www.greatestjournal.com/users/earthymoon/","Online Journal","_blank","");

// *** change these to absolutes

// add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")

addMainItem("","My Graphics",100,"center","","",0,0,"w");


addSubmenuItem("http://www.geocities.com/majas7/mykiss.html","My Comic Girls","","");
addSubmenuItem("http://www.geocities.com/majas7adoptme.html","Horoscope Dolls","","");

// add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")
addMainItem("http://www.geocities.com/majas7/horoscopecd.html","Birthday Counter 4U",80,"center","","",0,0,"e");

// add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")




//**DO NOT EDIT THIS *****

Willy Duitt
03-12-2004, 02:55 AM
I've seen this problem posted before and if I remember correctly the problem is that Geocities uses both window.onload and window.onunload to pop theirs ads and this is conflicting with the window.onload which your scripts are most likely using.


03-12-2004, 04:53 PM
Wow, that makes perfect sense I never though about that? Is there any thing I can do? I've always done pretty simple scripts that don't interfer with eachother so now I'm kinda lost. If anyone remembers were the post is, will they point me to it?

03-12-2004, 06:19 PM
Well, I found the tutorial on two event handler on the same page. That's all well and good, and I uderstand (I catch on quickly), But the problem is Geocities server generates that pop-up. I have no control of it's onload, sigh. Is there no hope? Do I need to put my simpiler menu on that doesn't have sub-menus (which I want and need). You know, if I ever get this to work I'm going to do a happy dance.

03-12-2004, 10:17 PM
Nevermind. I fixed it all by myself :-P

Willy Duitt
03-13-2004, 12:37 AM
Perhaps for the archive.
You will share the solution.
In the event someone searches.


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum