Programs i am using
NVU and notepad
http://www.nvu.com/index.php
If anyone knows of a better more powerful web editor please let me know
Menu Builder from Coffee Cup software
http://www.coffeecup.com/free-dhtml/help/using-the-dhtml-menu-without-all-the-code-in-your.508.html
I am new to web design and have been learning very quickly but i am now stumped by what i am sure is a simple problem.
I have found a free Menu creator that spits out a javascript code. I can either paste directly in to my html or i can make a .js file and link to it inside my webpage so my pages are not bloated with code.
I am trying to put my menu in a cell of a table on the right side of my page using the following code:
| Code: |
<script language="javascript"
src="scripts/dhtml_menu.js"></script>
|
And i have the .js file in the right spot.
Looks like this:
| Code: |
<script type='text/javascript'>
function Go(){return}
/***********************************************************************
YOU CAN MANUALLY CHANGE THE MENU HERE, BUT BE VERY CAREFUL !
***********************************************************************/
Menu1=new Array("Whats New!","http://","",0,30,180);
Menu2=new Array("Coming Soon!","http://","",0,30,180);
Menu3=new Array("","http://","",0,30,180);
blah blah blah
i cut the middle out for demonstration
function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}
</script>
<noscript>Your browser does not support script</noscript>
<!-- REST OF BODY CONTENT BELOW HERE -->
|
Why wont it work? Please help!
EDIT: Forgot to actually mention HOW it wont work.
The java script just wont show up in the browser. I have the pages on my computer with the right directory structure, but the script menu just wont show.
I tried out a simple java code that write "Hello World" and does not like to another file and that seemed to work. When veiwed in the browser it showed "Hello World" where it was supposed to.
don't realy understand what you have done.. did you paste this
| Code: |
<script language="javascript"
src="scripts/dhtml_menu.js"></script> |
in your table where u want your menu? If you did, it wont work, JS can't be included like that.. you still have to write the "html" part in your table..
Try taking the <script> tags out of the js file
| minik wrote: |
| Try taking the <script> tags out of the js file |
Okay i got it to show up by taking out the script tags from the .js file.
But now my problem is that it shows up at the top of the page. How do i get it to show up at least at the top of the cell so it doesnt cover up my banner and stuff at the top?
| Azmo wrote: |
don't realy understand what you have done.. did you paste this
| Code: | <script language="javascript"
src="scripts/dhtml_menu.js"></script> |
in your table where u want your menu? If you did, it wont work, JS can't be included like that.. you still have to write the "html" part in your table.. |
In theroy it should work i have seen it posted on another forum. It calls the javascript file from "scripts/dhtml_menu.js" and i thought it was supposed to display it where that code was put. It is showing up now i just cant get it to sow up inside the cell instead of at the top of the page.
I found something but...
This one does it with SSI i think, (to much for me right now)
http://www.milonic.com/mfa/2004-November/embedding-the-dhtml-code-inside-a-table-cell.html
This one i dont quite understand
I think from inside the cell they call a .js file which then calls another .js file? I am not sure i understand what they have done.
http://www.milonic.com/tablemenu.php
This one an example of code is left but it seems way to complex for something so simple (maybe i am wrong)
I think he is getting the size and placement of the cell? based on which browser you have then somehow sending it to the Javascript menu which is supposed to magicaly appear in the right spot?
http://www.thescripts.com/forum/thread150901.html
I am very confused now

I have reassesed everything and have discovered Joomla.
I am going to attempt to learn that and it will be way better in the end.
thank you!
When you get your javascript menu working right how are the people that have javascript turned off going to navagate your site? I know a lot of people don't turn off javascript but some folks do and they probably won't be inclined to turn it on to navigate your site. Also, and this is just my opinion, but it seems to me that javascript menus are like soooo last century. Reminds me of all the time I used to spend on Dynamic Drive looking for cool javascipt menus and cursor tricks (still remember the one I modified so that little blinking fairy gifs would follow your cursor all over the screen with their little wings fluttering and blinking in and out).
Anyway, my point is that there are a lot of Css menues that look just as good as the more basic javascript menus with rollover effects and all that but work even if css is turned off (basicly you see a plain list of links). Another point is that sometimes having more then one javascript causes conflicts that makes one or more of the scripts inoperable. There are a lot of really handy javascripts out there for other things besides menus (or tacky cursor tricks) that I would use css to style my menus and leave the javascript for other tasks.
Oh, and while Joomla will get your site up and running it really won't teach you a whole lot about HTML or CSS since it will tend to do most of the work for you in that regard (especially if you just use a theme). That's why my site is a mix of XHTML and CSS pages with a blog (currently WordPress) and forum (currently Simple Machines).
That's just my two cents worth though. Good luck.
well thing is that there is nothing wrong with using javascript.. what people have a problem with.. is to know where to use it.. and I agree that it might not be the best to have a menu based on JS.. but at the same time.. I use js when I (for example) make a pop up.. like "read more? click here" and u get a pop up with the text n stuff.. however.. alot of ppl dont display javascript since there are like a milion kids out there overdoing js and I dont get that happy when I enter a site with stuff moving, snow falling and stuff like that..
| Tex_Arcana wrote: |
Oh, and while Joomla will get your site up and running it really won't teach you a whole lot about HTML or CSS since it will tend to do most of the work for you in that regard (especially if you just use a theme). That's why my site is a mix of XHTML and CSS pages with a blog (currently WordPress) and forum (currently Simple Machines).
That's just my two cents worth though. Good luck. |
Well i am currently too poor to buy book, is there a website or something else that can allow me to learn easily?
What else would you suggest to get my site up with minaml cost?
How anout posting you address so i can see what you are talking about.
Hope that dont sound rude... Please and thank you.
You mean a web site like W3C Schools that has free online courses in most areas of web development so you understand what your doing? Then to learn some cool stuff you could visit sites like Open Source Web Design where people go to show off their strokes in design. You an down load their templates (it's free) and look at their code at your leasure and decide how you can use it in your own design.
I don't have a lot of money either so I tend to use the free stuff as well. I have Linux as my operating system, I use the GIMP for my graphics (lots of good tutorials at GIMPTalk), and Bluefish for coding. I don't think any of those folks with a brand new Vista based computer, Photoshop, and Dreamweaver have anything I really need.
The real secret to excellent web design is first learn to write good code, then write good code, then use it to show a little understated styling flair. Not all these things can be learned quickly. The coding is easier, any monkey can write code. Design is the really hard part.
I'm currently redesigning my site starting with the HTML pages. Since my old computer crashed I had been off Frihost for a bit and add to that I actually wok for a living it's been slow going. Hopefully soon I'll have my grand opening soon. Then I'll be glad to accept all your cheers and jeers.