Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Huntsville, AL
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't get Geocities to read .js file

    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.

    <HTML>

    <HEAD>
    <TITLE>
    HOME
    </TITLE>

    <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>
    <script language="javascript1.2" src="custom.js"></script>
    <script language="javascript1.2" src="style.js"></script>

    </HEAD>
    <BODY BGCOLOR="#9A32CD">

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

    <CENTER>
    <TABLE border="1">
    <tr>
    <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">
    <tr>
    <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>
    <script>netscape_support();</script>
    </td>
    </tr>
    <tr>
    <td>
    <a href="http://www.tag-board.com/" target="_new">Powered by TagBoard Message Board</a>
    </td>
    </tr>
    <tr>
    <td>
    <form action="http://www.tag-board.com/add.tag" method="post" name="tagform" target="tag">
    <input type="hidden" name="name" value="Earthymoon">
    Name<br>
    <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>)
    <br>
    <textarea cols="24" rows="3" name="message" wrap></textarea><br>
    <input class=button type="submit" value="TAG" onclick="return Clear_Last_Message_on_Submit();">
    </form>
    <script>rememberme()</SCRIPT>

    </td>
    </tr>
    </table>
    </th>
    </tr>

    <tr>
    <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>
    </tr>
    </table>

    </table>
    <CENTER>

    <BR>
    <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>
    </BODY>

    </HTML>


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



    ///////////////////////////////////////////////////////////////////////////
    //
    // ULTIMATE DROPDOWN MENU VERSION 3.4.1b by Brothercake
    // 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")
    addMainItem("http://www.geocities.com/majas7.html","Home",80,"center","","",0,0,"e");


    // add main link item ("url","Link name",width,"text-alignment","_target","alt text",top position,left position,"key trigger")
    addMainItem("","Webmistress",80,"center","","",0,0,"e");

    // define submenu properties (width,"align to edge","text-alignment",v offset,h offset,"filter")
    defineSubmenuProperties(120,"left","left",-4,0,"");

    // add submenu link items ("url","Link name","_target","alt text")
    addSubmenuItem("http://www.geocities.com/majas7/aboutme.html","About Me","","");
    addSubmenuItem("http://www.geocities.com/majas7/pictures.htm","Pictures","","");
    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");

    defineSubmenuProperties(137,"right","right",-4,0,"");

    addSubmenuItem("http://www.geocities.com/majas7/mykiss.html","My Comic Girls","","");
    addSubmenuItem("http://www.geocities.com/majas7/dollies.html","Dollies","","");
    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")

    addMainItem("","Guestbook",100,"center","","",0,0,"w");

    defineSubmenuProperties(137,"right","right",-4,0,"");

    addSubmenuItem("http://www.geocities.com/majas7/mykiss.html","Sign","http://geocities.yahoo.com/gb/sign?member=majas7","");
    addSubmenuItem("http://www.geocities.com/majas7/dollies.html","Veiw","http://geocities.yahoo.com/gb/veiw?member=majas7","");







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

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    .....Willy

  • #3
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Huntsville, AL
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Huntsville, AL
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Huntsville, AL
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind. I fixed it all by myself :-P

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perhaps for the archive.
    You will share the solution.
    In the event someone searches.

    .....Willy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •