Okay i got the hovering done, so how to i make it extend while having the buttons in the near center?
[QUOTE=Giraffen93;41396739]sure it just takes up a few kilobytes of more code used / ram, but i'm picky about stuff like that.[/QUOTE]
That's the thing you should be least concerned about, and not a valid reason to sacrifice usability.
[QUOTE=TerabyteS_;41399469]That's the thing you should be least concerned about, and not a valid reason to sacrifice usability.[/QUOTE]
Not to mention the fact that the JS that can be deleted by doing it this way is probably as large, if not larger, than the file size increase from changing the markup
Still, i can't get the submenu to span across the whole thing, without it i could just scrap the whole thing.
[QUOTE=Giraffen93;41399806]Still, i can't get the submenu to span across the whole thing, without it i could just scrap the whole thing.[/QUOTE]
You should show a screenshot, because it's very unclear what you're trying to do.
[QUOTE=TerabyteS_;41400270]You should show a screenshot, because it's very unclear what you're trying to do.[/QUOTE]
you can view the site here: [url]http://new.waldorfumea.se/[/url]
[QUOTE=Giraffen93;41400307]you can view the site here: [url]http://new.waldorfumea.se/[/url][/QUOTE]
Wrap the subnav in another div, apply the background to that div and center the UL inside it, you can then offset its position until its where you want it.
Its really quite simple.
[QUOTE=AMD Bulldozer;41400624]Wrap the subnav in another div, apply the background to that div and center the UL inside it, you can then offset its position until its where you want it.
Its really quite simple.[/QUOTE]
but then i'd have to add that div to every submenu, gotta be a better way methinks
[QUOTE=Giraffen93;41400644]but then i'd have to add that div to every submenu, gotta be a better way methinks[/QUOTE]
Its only one element...
I'd take that over completely unnecessary JavaScript any day.
[QUOTE=AMD Bulldozer;41400677]Its only one element...
I'd take that over completely unnecessary JavaScript any day.[/QUOTE]
but i still have to use javascript for the submenu to stay there
[QUOTE=Giraffen93;41400691]but i still have to use javascript for the submenu to stay there[/QUOTE]
I think the point everyone is trying to get across is that the menu staying there for some (most) clients just isn't worth it [I]never showing up[/I] for anyone who doesn't want to load your javascript.
Well, I have had to do some web stuff for a server group I am a part of and got through that ok(Havn't done it for a while) and only started to understand CSS then (I think I was 12/13 when I last did this) and now that I understand and have read through my book I feel confident. So today I had some spare time and decided to create a little site with an imagemap(didn't make that myself, still learning) and set out the layout and everything else.
[IMG]http://img819.imageshack.us/img819/3070/ejbn.png[/IMG]
[QUOTE=SlimHaydy;41407421]imagemap[/QUOTE]
no.
[editline]11th July 2013[/editline]
1999 called they want their element back
[QUOTE=JohnD;41409520]no.
[editline]11th July 2013[/editline]
1999 called they want their element back[/QUOTE]
The amount that companies use image maps in email marketing makes my head hurt
There is absolutely no reason for that to be an imagemap. The [B]ONLY[/B] time you should use an imagemap on a regular website is if you have irregularly shaped, interlocking pieces that need to be clickable.
[QUOTE=Shadow801;41409805]The amount that companies use image maps in email marketing makes my head hurt[/QUOTE]
HTML for email is still stuck in the 90s so that makes sense there.
[QUOTE=Rayjingstorm;41403288]I think the point everyone is trying to get across is that the menu staying there for some (most) clients just isn't worth it [I]never showing up[/I] for anyone who doesn't want to load your javascript.[/QUOTE]
well true
but how many people have disabled javascript these days?
[QUOTE=Giraffen93;41412309]well true
but how many people have disabled javascript these days?[/QUOTE]
Search engines, people using screen readers. Generally the screen readers thing is even more important to take in to account for school websites, as there are often regulations requiring them to be accessible to people with disabilities that would cause them to need to use a screen reader. In all honesty, if you're not aware of these issues you should be teaching yourself more before taking on projects like this.
[QUOTE=Giraffen93;41412309]well true
but how many people have disabled javascript these days?[/QUOTE]
People using [URL="http://noscript.net/"]Noscript[/URL] have it disabled by default.
[QUOTE=KmartSqrl;41412524]Search engines, people using screen readers. Generally the screen readers thing is even more important to take in to account for school websites, as there are often regulations requiring them to be accessible to people with disabilities that would cause them to need to use a screen reader. In all honesty, if you're not aware of these issues you should be teaching yourself more before taking on projects like this.[/QUOTE]
Don't even know where to start, i've self-taught all my knowledge in the past 7 years.
[QUOTE=benbb;41412634]People using [URL="http://noscript.net/"]Noscript[/URL] have it disabled by default.[/QUOTE]
I find it funny how people still use that.
[QUOTE=Giraffen93;41412703]Don't even know where to start, i've self-taught all my knowledge in the past 7 years.[/QUOTE]
I'm entirely self taught too, but these are the kinds of things you need to be aware of when you're doing work for other people.
[QUOTE=Giraffen93;41412703]Don't even know where to start, i've self-taught all my knowledge in the past 7 years.
I find it funny how people still use that.[/QUOTE]
I use it to block scripts I find unnecessary.
[QUOTE=Giraffen93;41412703]Don't even know where to start, i've self-taught all my knowledge in the past 7 years.
I find it funny how people still use that.[/QUOTE]
Blindly having Javascript enabled opens a lot of security risks.
[QUOTE=Jivel1;41414568]Blindly having Javascript enabled opens a lot of security risks.[/QUOTE]
[IMG]http://s12.postimg.org/8ukg7x3xp/unity3d_Forum.png[/IMG]
Or to simply limit content, many sites load unnecessary files.
[editline]11th July 2013[/editline]
Facepunch's compared to NewEgg's:
[IMG]http://s7.postimg.org/ciiodrgvv/new_Egg_Market.jpg[/IMG]
My catalog loads and functions properly.
[editline]11th July 2013[/editline]
And those lists can grow [i]long[/i] sometimes...
[QUOTE=Jivel1;41414568]Blindly having Javascript enabled opens a lot of security risks.[/QUOTE]
"oh no, someone might use an alert() on me!"
It's called cross-site scripting and it happens mostly to shit-tier local websites, but high profile websites aren't 100% safe either. One or two years ago Youtube had a flaw that made it possible for users to redirect you to whatever shock site they had in store. Used scripts ranged from simple alerts saying Justin Bieber died on his video page to gore/shock/porn redirects.
[QUOTE=Jivel1;41415126]It's called cross-site scripting and it happens mostly to shit-tier local websites, but high profile websites aren't 100% safe either. One or two years ago Youtube had a flaw that made it possible for users to redirect you to whatever shock site they had in store. Used scripts ranged from simple alerts saying Justin Bieber died on his video page to gore/shock/porn redirects.[/QUOTE]
do you disable javascript on youtube.
Between the current 4 sources of JavaScript on YouTube, including YouTube itself, no.
[QUOTE=KmartSqrl;41410591]There is absolutely no reason for that to be an imagemap. The [B]ONLY[/B] time you should use an imagemap on a regular website is if you have irregularly shaped, interlocking pieces that need to be clickable.[/QUOTE]
Well, thanks for saving my future. Like I said, I haven't properly done this for a while and I didn't know there was a hatred for image maps. I take that I could do something similar with java script? And where would you say the best place to learn java script would be?
[QUOTE=SlimHaydy;41417542]Well, thanks for saving my future. Like I said, I haven't properly done this for a while and I didn't know there was a hatred for image maps. I take that I could do something similar with java script? And where would you say the best place to learn java script would be?[/QUOTE]
You don't need javascript at all for that either. You just need HTML and CSS.
[QUOTE=SlimHaydy;41417542]Well, thanks for saving my future. Like I said, I haven't properly done this for a while and I didn't know there was a hatred for image maps. I take that I could do something similar with java script? And where would you say the best place to learn java script would be?[/QUOTE]
Javascript. please...
Sorry, you need to Log In to post a reply to this thread.