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 12 of 12
  1. #1
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts

    Angry I...have a big problem...

    http://www.geocities.com/jonshtmlhelp

    Alright, that is my site. I am having a heck of a problem with the sidebar, which you may or may not see. I have it in an iFrame, which I don't like in the first place because it doesn't work in Netscape, and loading another Geocities page will just give me two annoying ads to deal with. I had the iFrame load a page from freewebz.com, and also liquid2k.com, but I keep getting the same problem with it. It loads sometimes, but the rest of the time it doesn't load. I know I could switch servers all together, but I have yet to find a good web host. I could just use frames, but I don't want to use frames. I could solve it all with my own paid domain, but with no job I would have a problem affording it. Is there any way besides using an iFrame or frame that I can get the sidebar to load in multiple pages so it is easily changeable in all of them? I tried loading it as a .js file externally, but all I got was errors, and Geocities doesn't allow SSI scripting, so I see myself as stuck. I am very open to suggestions.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would use an external *.js file, you say you had problems with them but when i used geocities they worked for me as for the adds on iframes... try an add free host, brinkster are good

    correct me if im wrong, (as i mostly code for IE ) but i think <ilayer>'s are the NS equivalent for iframes... so you could try something like this:
    Code:
    <iframe src="menu.html" height="" width="">
      <ilayer src="menu.html" height="" width="">
        Your browser does not support Iframes or Ilayers! Get with the times, get an upgrade :-)
       </ilayer>
    </iframe>
    that should work,

    happy coding

    Edit: site looks fine to me
    Last edited by redhead; 07-11-2002 at 08:20 PM.
    redhead

  • #3
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Yeah, I know iLayers are for netscape, but that really isn't my concern right now. As for the .js file, I want to have three of them on my page, each containing a different one of the three parts of my DHTML script. I used the convenient HTML - JavaScript converter to convert the script, saved and uploaded it, then linked to it, but I simply got an error on page loading and my menu did not work. Yes, and as for you saying it looks fine, did you try reloading the pages a couple of times? (just the first two under essentials) go back and forth or whatever for a while and all of a sudden the menu doesn't appear.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you post a link to the page containing the three external .js files so we can see whats wrong?
    redhead

  • #5
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Umm, I don't know if they are perfect or anything, because I haven't used them now, but here they are:

    http://www.geocities.com/jonshtmlhelp/js/dhtml1.js
    http://www.geocities.com/jonshtmlhelp/js/dhtml2.js
    http://www.geocities.com/jonshtmlhelp/js/dhtml3.js

    I have to get off now, I'll be back to check tonight. The files are pretty complicated and I don't know how they would work out.

    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    That is the site that I got the basic menu form from. I edited it a bit for my site, but if that helps any there it is.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    okay, looking at the Dynamic Drive script, it looks like its pretty important to have them put in the right place on the page... are you using document.write() for the whole of the html generated by that dynamic drive script? where there are actual scripts you need to leave them out of the document.write() part, and just put them in the external .js files, otherwise that might throw some errors. i cant really think of many more things that might be wrong with it (i think geocities have something against direct linking to scripts, so couldnt take a look at yours).

    maybe someone else can spot some things ive missed.

    happy coding
    redhead

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Conwy. UK
    Posts
    122
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To get the scripts right click the link and save as ...
    An answer needs a question just as much as a question needs an answer. Deep eh!

  • #8
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Well, here it is: http://www.geocities.com/jonshtmlhelp/jstest.htm

    I edited the .js files so the scripts were out of the document.write tag, and yet still I get errors. I'm getting in over my head. I want to do things that I shouldn't even be attempting without more capabilities, lol. I don't have the slightest clue of what I am to do...

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool sorted (i think)

    I think ive sorted it, click here to see if you agree. (i'll keep it there for a week or so for you to download it...)

    to help you if you need to do something like this again, i'll list what i did to the code:

    1. made the html <!--comments--> into javascript //comments
    2. contained all the if's
    3. put all the html into document.writeln() tags
    4. changed all the document.write() to document.writeln()
    5. removed all <script></script> tags.


    Hope this helps you,
    redhead

  • #10
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Well I've gotta hand it to ya, you did a great job. I'm not quite sure I could do all that as I don't understand it, I'll give the code a look-see and see what I can come up with. I don't suppose it took a long time to do, eh? Every time I want to add a new page I have to change the files....2 of them I think. Well, I'll figure something out, thanks a bunch!

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    any time
    redhead

  • #12
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Well, I downloaded the js files so feel free to delete them whenever you want to. I have looked at them and I understand what you did to them. I can see why it works. I think if I ever need to edit them I won't have a problem. But if I do, I know who to ask, hehe. Thanks again!

    now all I have to worry about is loading time...


  •  

    Posting Permissions

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