Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   Drop-down menus (https://novahq.net/forum/showthread.php?t=37332)

Chrispy 01-31-2007 05:14 PM

Drop-down menus
 
Does anyone know a snippet of HTML to use so when you point to something it drops down a menu, etc?

Like this one here:
http://rami.mawas.googlepages.com/

Look up on top. Ty as well.

:)

Chris :)

Lakie 01-31-2007 05:41 PM

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

Matt 01-31-2007 06:14 PM

what do u need a drop down box for..if its for filling out a form u need to have a different script for that

Chrispy 01-31-2007 09:59 PM

Quote:

Originally posted by Trilogy
what do u need a drop down box for..if its for filling out a form u need to have a different script for that
Nope. Not for filling out forms dude lol. Just a menu lol. xD

Thanks Mike, looking at it now... :P

Chris :)

Chels 01-31-2007 10:01 PM

Is it for you? Or you asking for someone else?

Bustin 01-31-2007 10:19 PM

There are loads of variances you can write with dhtml and javascript.

Chrispy 01-31-2007 11:10 PM

The code is for my site...

If the poo hits the fan, I'll use my flash menu I created here:
http://www.flashbuttons.com/

^ Would rather use this.

The damn Google Page Creator is at its ''hiccups'' again so you know... can't edit my site... :S

Quote:

Originally posted by the Kát™
Is it for you? Or you asking for someone else?
For me... of course...

Chris

Chrispy 02-05-2007 12:26 PM

Well, the one you gave me Mike didn't work out, just text showing up!

I tried those Flash menus and they do work... but the crap thing is, is that when I try to put them in the right or left column, it will disappear!

I think I tried editting the width and height... dunno...

Chris

Bustin 02-05-2007 12:52 PM

PM me...leave me your site link, and a description of what you want mate. I can customize one to fit.

VooDoo- 02-06-2007 08:11 AM

only way i've ever done it is by dhtml like what mike linked

JonM 02-06-2007 05:04 PM

can be done via css (directed at voodooo)

i would show you but it's been to long :| srry

Chrispy 02-06-2007 05:12 PM

That's what I hate about Google Pages lol... I dunno what it supports and what it doesn't support... e.g: UTF-8, DHTML, etc...

:|

Chris

Bustin 02-06-2007 06:56 PM

DHTML, CSS, JS are all supported via standard hosting as they are not remote system features. They are read by the browser no database requirements are needed.

JonM 02-06-2007 11:47 PM

chances are if DHTML, CSS, JS and the likes aren't working then you are doing something wrong or it's not supported by your browser :\

be sure to double check your dhtml.

Chrispy 02-07-2007 12:05 AM

Some say to upload a JavaScript file and everything and I perfectly understand it TBH. When I do it, nothing TBH...

And even if it did happen, it would disappear...

Like when I added flash menus to my site... I added them in, did the HTML, etc, did the .swf upload, everything right? It then shows up and when I click ''Publish'', it disappears. However, that's because I tried adding it to the left column of my page (it works when I add it where there's heaps of space to add text, like the middle part of the page)... and it doesn't support that, or should I change the height and width? (Not sure if it worked when I changed the height and width...)

And believe it or not, I emailed the dude who made the webpage and asked how he did it but no reply...

However, I'll be happy to try and do the HTML thing again tomorrow.

Thanks for all your help JonM. ;)

Chris :)

JonM 02-07-2007 12:13 AM

haha i know i'm not really helpful i'm just pointing out that it should work. i'd actually seriously suggest CSS except for the whole site would need to be html/css / divs etc (i believe?) so ya. GL with whatever you do, and if nothing else works i'll have dug up some good ol' links where you can roll on too :)

Chrispy 02-09-2007 01:33 PM

Code:

<div id="menu_parent">Main Menu</div>

<div id="menu_child">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>

<script type="text/javascript">
at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
</script>

I found out I had to upload something called ''dropdown.js'', and now, I dunno what to edit to make it use the .js file... :(

Any help? :P

Chris :)

Bustin 02-09-2007 02:11 PM

That's the easy part...under your title section of the coding place this.

Code:

<script src="dropdown.js"></script>

Chrispy 02-09-2007 02:55 PM

I made it like this:

Code:

<div id="menu_parent">Main Menu</div>
<script src="dropdown.js"></script>

<div id="menu_child">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>

<script type="text/javascript">
at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
</script>

Didn't work...

Any other assistance lol?

Chris

Bustin 02-09-2007 10:56 PM

I just told you above where you had to put it chris.

Chrispy 02-10-2007 12:06 AM

Quote:

Originally posted by Bustin
I just told you above where you had to put it chris.
Well, just to be sure, did I do it correctly?

http://chrisb1993.mgrider.googlepages.com/

To be honest, it looks kinda alright as it is without the drop-down menus... and, the drop-down menu shown on the site doesn't kinda blend in with my site... However, still help me if you can with it just incase.

http://www.dynamicdrive.com/dynamicindex6/clock2.htm

It says:

Step 2: Inside the <BODY> tag itself, throw in the following onLoad event handler, as follows:

<body onLoad="show_clock()">

I don't get this part TBH... but I get everything else...

Chris

Bustin 02-10-2007 03:18 AM

What don't you get? That is a simple code that just displays your computer time mate. Just Copy and Paste it where they tell you to. Nothing needs modified.

DevilDog#1 02-10-2007 10:26 AM

PHP Code:

<title>
     <
script src="dropdown.js"></script>
</
title>

<
body>
.
.
.

   <
div id="menu_parent">Main Menu</div>

    <
div id="menu_child">
      <
a href="#">Item 1</a>
      <
a href="#">Item 2</a>
      <
a href="#">Item 3</a>
  </
div>

<
script type="text/javascript">
at_attach("menu_parent""menu_child""hover""y""pointer");
</
script>

.
.
.
</
body

Makes sense?

Chrispy 02-10-2007 02:58 PM

Quote:

Originally posted by Bustin
What don't you get? That is a simple code that just displays your computer time mate. Just Copy and Paste it where they tell you to. Nothing needs modified.
I tried that dude... and guess what? It didn't work!

I did a straight copy and pasted into my page's HTML... and you know what comes up? Nothing... lol.

And BTW, there was no title section for the drop-down menu HTML thing too...

And I just tried what DevilDog gave me and nothing lol... and believe me, GPC is a killer to mess around with...

Yes, I tried that live clock thingy and nothing too... FFS... I'm gonna check other sites for stuff just incase lol.

* Edit:
http://www.javascriptkit.com/script/cut2.shtml

^ I tried that and it works! :)

Might fo hunting for drop-down menu snippets on other sites... lol.

Chris

Chrispy 02-10-2007 03:59 PM

http://www.javascriptkit.com/script/...leveltab.shtml

This worked... on my test page and when I did it on my main page... crap happened lol.

http://chrisb1993.mgrider.googlepages.com/

^ Check on my progressing, lol. ^

Chris

Chrispy 02-10-2007 06:09 PM

Apologies for the third reply lol... because for some reason, when I make a reply, usually minutes after, I will just usually edit it, but half an hour later or more, I just make a new reply lol. Called habits I guess, lol.

Check back on my site now:
http://chrisb1993.mgrider.googlepages.com/

Look on top and you'll see I added a ''weird'' menu, lol.

And yah... it was a lagfest BTW when doing it too lol.

* Edit:
Now the page freezes because of goddamn menus... don't they ''fit in'' or something?! :(

* Edit:
Now I put it on the bottom of the page. All fixed! :D

Chris :)

Bustin 02-10-2007 10:31 PM

Dude...code just works. If you copy and paste what is shown, then it will work.

So you have to be messing something up along the way.

Chrispy 02-10-2007 11:15 PM

Dude, that's too true... but when you're using Google Pages, crap can happen; regardless.

I suggest you check back up on my site now. The menus on the bottom are awesome!

At the start, when it showed me the HTML for the menu thingy, it had four parts: two were parts that could drop down, and two that couldn't. Basically, the first button couldn't drop down so I took that off, and the last button that couldn't drop down was called ''Search'', which linked to Google. I then changed that into a drop-down menu with links to search sites and now, for some reason, when I use the menu, the text stands out way more!

Just go to my site, and when you point to something on the menu, when it shows the links being launched down bottom, that never used to be white... and it used to be plain ugly...

The only drawback is, is that when I point to the buttons themselves that drop down the links, they link to the homepage of my site... Believe it or not, there's nothing that can change that. (And another weird thing is, when you point to a picture on Google Pages that you uploaded to your site, it direct links to that picture itself... lol...)

Now it's all sweet I guess lol. :D

Chris :)

Erik 02-10-2007 11:19 PM

Suggest learning HTML

JonM 02-11-2007 10:37 AM

Quote:

Originally posted by Erik
Suggest learning HTML
agreed HTML/CSS are almost essential for webpage admins :)

but i'm liking the site as is currently...pretty cool.

Chrispy 02-11-2007 09:30 PM

In the next few days the Arcade on my site is going to be up with games you can play... and way better... I'll be adding in about ten more exciting fun games! :)

Chris :)

Chrispy 02-13-2007 11:27 PM

Check my site now.

Chris :)


All times are GMT -5. The time now is 03:32 AM.

Powered by vBulletin®