Jump to content

New Club Website Im Making


marc512

Recommended Posts

Not bad. I would suggest having the submenus drop down below the main one however.You might want to rethink using frames. Do you have a specific reason for using that? Often it is to same recoding something (menus, footers, headers) on individual pages. Better would be to have those things included on every page - write once, use many.

Link to comment
Share on other sites

the main reason is because i want less things to edit. If you look at the old website when ever i had to make a new link at the top..i had to change EVERY page.This time i only need to make a page and edit the JS in the top frame thats it. Less work for me = good.Iv tried PHP externally loading a txt file but its abit to fiddly.I was hopeing to learn more about PHP and phpnuke cause it seems to be alot easier when updatieng alot

Link to comment
Share on other sites

What I usually do if I don't want PHP is to include the javascript to write the contents of the header, menu, footer, etc., in an external JavaScript file. That way, you don't have to fiddle with PHP, don't have to use frames, and don't have to recode the same things over and over.Downside is search engines don't like it that much... oh well.

Link to comment
Share on other sites

i dont know what php thing i tried. All the php i know is how to laod an external txt file and ( ill try and explain it as best as i can ) make a php file load diffrent text when you click a link. EG if i made a homepage with alot of news and i wanted to see previous. i would click next and it would show the previous news withouth loading a new page.Ill start learning PHP in detail next year at some point. This year was mostly learning the advanced HTML/CSS which im still trying to get the hang off.If the php thing your on about is easy and is better than frames. Iv got till january 1st to learn it. Have you got any links on a tutorial for it?<<<<------>>>>>>found the tutorial & followed it and i see how it is easier. Its abit complicated at first but...so was the frames :) ill see what i can do to change my site around

Link to comment
Share on other sites

got a problem here with the PHP code. I would make a new topic but i dont wanna spam. Anyways iv got it all working got a menu.php etc etcgot all the files what need the menu loaded with <?php include("http://www.eskc.net/phptest/Menu/menu.php"); ?>in it. Iv tried it without the full link.The confuseing bit that is it WORKS but the navigation bar doesnt. but when you goto http://www.eskc.net/phptest/Menu/menu.phpit works perfectly. But without the scotland flag. What is the problem? you know its loading because theres a scotland flag on every page when there shouldnt be. Its only in the menu.php file.

Link to comment
Share on other sites

got a problem here with the PHP code. I would make a new topic but i dont wanna spam. Anyways iv got it all working got a menu.php etc etcgot all the files what need the menu loaded with <?php include("http://www.eskc.net/phptest/Menu/menu.php"); ?>in it. Iv tried it without the full link.The confuseing bit that is it WORKS but the navigation bar doesnt. but when you goto http://www.eskc.net/phptest/Menu/menu.phpit works perfectly. But without the scotland flag. What is the problem? you know its loading because theres a scotland flag on every page when there shouldnt be. Its only in the menu.php file.
I saw the flag in both FF and IE6. And the menu is better (loads dropdown instead of over).You do know anyone that has javascript turned off is screwed?
Link to comment
Share on other sites

Im actually one of people he has taught to use PHP includes and it was only about a week or two ago that he taught me and now Im in love with them. A basic include is easy to do as you have probably figured out but im sure if you are stuck still its with the java one but it is doable. Im running 3 on each of my pages one being the css menu and then just a basic header and footer but on my home page im using a javascript "show more" script in a php include. http://bw83.com/menu/home.phpand this is the thread where he was teaching me how to do it even though your already further then me cause you knwo hwo to do an include lol http://w3schools.invisionzone.com/index.php?showtopic=22491The part your getting stuck on I think (not sure it may be something else) but your individual php file works but the menu doesnt work when you do the include which I had the problem with on my javascript include I was doing. What I had to do was move the <body onload="clickMenu('outer','div','more')"> to the actual home.php page rather then leaving it in the include file and my home.php page also has 2 lines for stylesheets since its hardcoded and not a @import in my main css file so they look like <link rel="stylesheet" media="all" type="text/css" href="fixed.css" /><link rel="stylesheet" media="all" type="text/css" href="more/more.css" />So if your javascript header has any effects in the <body> tag make sure to put them on the main page in the actual body tag otherwise they will be loading inside of the body of the page not in the tags the same with your stylesheets. If im off on whats giving you problems Im sorry I just know these were the two things that stopped my javascript from running in the include but let it run on its own.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...