Help - Search - Members - Calendar
Full Version: Website not displaying correctly...HELP
HTMLHelp Forums > Programming > Client-side Scripting
lemusa
I'm reasonably new to web stuff, well ive been messing with it for about 4 years but not solidly so most would class me as learning

my site (www.ahoythere.co.nz) just a site where keep in contact with friends with gallery etc

anyway my problem is the gallery, i used a program called easy button and menu creator for the menu, quite cool, saved me alot of learning :-). Now on my computer (and others ive tried it on) it loads everything fine and when i select an album the menu stays put in its frame (yes i use iframe sorry lol). But when i access it on the internet it basically ignores that frame once a album is selected and the menu disappears. I cant figure out why, im guessin its a simple fix but ive exhausted my knowledge and ideas

Can someone help me out with fixing it? I can post whatever coding needed, just let me know

Thanks heaps
Darin McGrew
What gallery? I just see a two-frame frameset, with no links or gallery.
lemusa
? what you mean, theres a gallery link on the menu...
lemusa
<!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" xml:lang="en" lang="en">

<head>
<script type="text/javascript" language="JavaScript1.2" src="um_menu.js"></script>
<title></title>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="style.css">
</head>

<body>

<center>


<link rel="stylesheet" href="cbcscbinsmenu.css" type="text/css" />

<ul id="ebul_cbinsmenu_1" class="ebul_cbinsmenu" style="display: none;">
<li><a href="images/gallery/old/various/index.html" title="" target="full">Various</a></li>
</ul>
<ul id="ebul_cbinsmenu_2" class="ebul_cbinsmenu" style="display: none;">
<li><a href="images/gallery/2006/elyse's_18th/index.html" title="" target="full">Elyse's 18th</a></li>
<li><a href="images/gallery/2006/bach/index.html" title="" target="full">Happy Boy's Bach</a></li>
<li><a href="images/gallery/2006/various/index.html" title="" target="full">Various</a></li>
</ul>
<ul id="ebul_cbinsmenu_3" class="ebul_cbinsmenu" style="display: none;">
<li><a href="images/gallery/2007/various/index.html" title="" target="full">Various</a></li>
</ul>
<ul id="ebul_cbinsmenu_4" class="ebul_cbinsmenu" style="display: none;">
<li><a href="images/gallery/2008/duey's_20th/index.html" title="" target="full">Duey's 20th</a></li>
<li><a href="images/gallery/2008/various/index.html" title="" target="full">Various</a></li>
</ul>
<table id="cbinsmenuebul_table" width="0" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding-right:1px" title=""><a><img id="cbi_cbinsmenu_1" src="ebbtcbinsmenu1_0.gif" name="ebbcbinsmenu_1" width="92" height="25" border="0" alt="Way Back" title="" /></a></td>
<td style="padding-right:1px" title=""><a><img id="cbi_cbinsmenu_2" src="ebbtcbinsmenu2_0.gif" name="ebbcbinsmenu_2" width="87" height="25" border="0" alt="---2006---" title="" /></a></td>
<td style="padding-right:1px" title=""><a><img id="cbi_cbinsmenu_3" src="ebbtcbinsmenu3_0.gif" name="ebbcbinsmenu_3" width="87" height="25" border="0" alt="---2007---" title="" /></a></td>
<td style="padding-right:1px" title=""><a><img id="cbi_cbinsmenu_4" src="ebbtcbinsmenu4_0.gif" name="ebbcbinsmenu_4" width="87" height="25" border="0" alt="---2008---" title="" /></a></td>
</tr>
</table>
<script type="text/javascript" src="cbjscbinsmenu.js"></script>




<iframe height="625" width="100%" scrolling="auto" name="full" src="images/gallery/start.html" frameborder="0" marginheight="0" marginwidth="0" align="center"></iframe>
</center>
<hr align="center">

<p align="center"><font size="2">Created by Lemusa © <em>Copyright 2008, All images property of ahoythere.co.nz and its owners</em></font></p><br>

</body>
</html>




this is the page that loads when the gallery is loaded in main menu
Darin McGrew
Ah, there's no menu unless JavaScript is enabled. I'm moving this thread to the Client-side Scripting forum, since that's what it is about.
lemusa
oh ok, sorry im not really in the know on how it works, there must be a way to load them even without people havin to enable javascript on there browser?
Christian J
With javascript enabled I could see the menu all the time in my browsers. Could you be more specific about how to recreate the problem (including which browser it occurs in)?
Darin McGrew
QUOTE
there must be a way to load them even without people havin to enable javascript on there browser?
Yes. Use normal links. Make sure it works with the normal links first, then dress it up with JavaScript if you want.
lemusa
under the gallery the menu displayin albums always stays there? odd

sorry im not sure how id dress it up, i used a menu generator cos it was easier
Christian J
QUOTE(lemusa @ Nov 29 2008, 12:35 AM) *

under the gallery the menu displayin albums always stays there?

Did you mean this one: http://www.ahoythere.co.nz/gallery.html ? In that case it's not a javascript problem, but happens because of the nested framesets. I advice against using frames, and especially against nesting framesets.

If you still want to use frames, search engines may index this:

CODE
<noframes>YOUR BROWSER SUCKS AND DOESN'T SUPPORT FRAMES...GET ONE THAT DOES!</noframes>


tongue.gif
lemusa
ok thanks for that, could you give me a rundown on how i would get the same appearance but usin a better method?
Christian J
If your host offers PHP, ASP or SSI you can easily include common content already on the server.
lemusa
host does offer php, how would i set it up
Christian J
Paste the content of e.g. ordinary text files into your HTML documents by using the PHP include() directive, like this:

CODE
<?php include '/main_menu.txt'; ?>

and put the HTML snippet you want included in "main_menu.txt". The server will then seamlessly put it all together. You probably want the contents of http://www.ahoythere.co.nz/title.html on all web pages, and in addition to that http://www.ahoythere.co.nz/gallery.html in a second inclusion directive on the gallery pages. Just make sure you remove the HEAD section, <body> and <html> tags from the HTML snippet in the included file (otherwise you'd get multiple copies of these tags).

Not all servers are configured to run PHP on HTML documents with .html extensions, if so that can be changed easily.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.