![]() |
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 :) |
|
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
|
Quote:
Thanks Mike, looking at it now... :P Chris :) |
Is it for you? Or you asking for someone else?
|
There are loads of variances you can write with dhtml and javascript.
|
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:
Chris |
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 |
PM me...leave me your site link, and a description of what you want mate. I can customize one to fit.
|
only way i've ever done it is by dhtml like what mike linked
|
can be done via css (directed at voodooo)
i would show you but it's been to long :| srry |
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 |
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.
|
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. |
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 :) |
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 :)
|
Code:
<div id="menu_parent">Main Menu</div> Any help? :P Chris :) |
That's the easy part...under your title section of the coding place this.
Code:
<script src="dropdown.js"></script> |
I made it like this:
Code:
<div id="menu_parent">Main Menu</div> Any other assistance lol? Chris |
I just told you above where you had to put it chris.
|
Quote:
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 |
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.
|
PHP Code:
|
Quote:
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 |
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 |
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 :) |
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. |
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 :) |
Suggest learning HTML
|
Quote:
but i'm liking the site as is currently...pretty cool. |
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 :) |
Check my site now.
Chris :) |
All times are GMT -5. The time now is 03:32 AM. |
Powered by vBulletin®