this is the prototype that i work out : prototype
wondeful javascript, javascript menu with transparent png
wondeful javascript, javascript menu with transparent png
|
|
May 30 2006, 09:43 AM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]()
Junior Member
79 posts Joined: May 2006 From: jb |
this is the prototype that i work out : prototype
|
|
|
|
|
|
May 30 2006, 10:09 AM
Show posts by this member only | Post
#2
|
|
Elite
4,210 posts Joined: Jan 2003 From: Malaysia |
urm.. which part is the transparent PNG..?
the original script was written in 2002.. hehe.. i peeked at the JS. anyway, one of the concerns of website standards today is the 'IF' what will happen when a viewer doesn't have a certain function required for a feature. in this case, I noticed that the JS is not really DOM driven. If you turned off the Javascript, the menu doesn't dropdown. I understand it's highly unlikely that anyone turns off JS but having a foolprrof DOM is what it's about nowadays. have you tried AListApart's dropdown menu tutorial? cheers. |
|
|
May 30 2006, 10:21 AM
Show posts by this member only | Post
#3
|
![]() ![]()
Junior Member
79 posts Joined: May 2006 From: jb |
the original script is very short and simple, i just enhance it and added transparent png (try products > agriculture > blower )
IE < 7 does nt suport transparent png, must use javascript to fix this problem. i combine alot of script to work out this menu, of cause some modification from the research, only 5 - 10 % of user will purposely disable java script and the major reason behind it is for the security purpose. |
|
|
May 30 2006, 10:29 AM
Show posts by this member only | Post
#4
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,788 posts Joined: Jan 2003 From: 冰城 |
hi sifu.... i like the drop down very much, response fast and better the one I am using which need to pay.
can I have the code? and etsuko, how do you "peep" the JS code? thanks for the advice. |
|
|
May 30 2006, 10:43 AM
Show posts by this member only | Post
#5
|
![]() ![]()
Junior Member
79 posts Joined: May 2006 From: jb |
|
|
|
May 30 2006, 10:46 AM
Show posts by this member only | Post
#6
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,788 posts Joined: Jan 2003 From: 冰城 |
yeah! thanks man... cant wait to try it out
|
|
|
|
|
|
May 30 2006, 12:00 PM
Show posts by this member only | Post
#7
|
|
Elite
4,210 posts Joined: Jan 2003 From: Malaysia |
lol.. using Firefox.. just look into the source.. see the path.. then copy and paste and Firefox will display the JS in the browser. same goes with CSS files oso.
but I've got the Web Developer extension in place so it's easier abit. |
|
|
May 30 2006, 12:22 PM
Show posts by this member only | Post
#8
|
![]() ![]()
Junior Member
79 posts Joined: May 2006 From: jb |
yaya lets firefox, ie suck
|
|
|
May 30 2006, 01:47 PM
Show posts by this member only | Post
#9
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,788 posts Joined: Jan 2003 From: 冰城 |
oh... now I get you..
damn.. I almost forgot they are in the absolute path. |
|
|
May 30 2006, 02:00 PM
|
![]() ![]()
Junior Member
276 posts Joined: May 2006 From: MMU, Cyberjaya |
hehe... I'd written a javascript popup menu too some time ago... when I was form 4, helping my sis's friend to turn a psd design into html... take a look ^^
http://www.triopacific.com (the menu is at the bottom) edit~ argh! now only I found that it's not working well in firefox... submenus of the product and services have gone to nowhere..... have to do something..... >.< edit~ omg... I've lost the ftp password... cannot do any change... no idea, have to leave it like this... This post has been edited by Stupid Khor: May 30 2006, 02:33 PM |
|
|
May 30 2006, 04:37 PM
|
![]() ![]()
Junior Member
79 posts Joined: May 2006 From: jb |
ya, now adays must work with differ browser, mine one so far no problem in firefox and IE, perhaps others browser too, but the main concern is this two major browser...some script work in IE but not firefox, some are vice versa.
|
|
|
May 30 2006, 06:12 PM
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,788 posts Joined: Jan 2003 From: 冰城 |
hey, its kinda cool.. but a bit messy with the artistic background.
and kinda slow for a static site. |
|
|
May 30 2006, 06:31 PM
|
![]() ![]()
Junior Member
276 posts Joined: May 2006 From: MMU, Cyberjaya |
gpyong:
ya, now adays must work with differ browser, mine one so far no problem in firefox and IE, perhaps others browser too, but the main concern is this two major browser...some script work in IE but not firefox, some are vice versa. Hmmm.... even if a script couldn't work with certain browser, it must have an alternative... you might have to make 2 version of them, but... to make it cool, what's the choice? bobtiang: hey, its kinda cool.. but a bit messy with the artistic background. and kinda slow for a static site. hehe... thanks, but the design is not done by me... well the texts are hard to read too... I thought the design is cool before, but after some years of experience only I realize that this is not a good design, especially as a commercial website, it should not be like this... This post has been edited by Stupid Khor: May 31 2006, 09:52 AM |
|
|
May 31 2006, 09:31 AM
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,788 posts Joined: Jan 2003 From: 冰城 |
yeah.. thats what I wanna say, for a biz commercial site. it just look too funky.
|
|
|
May 31 2006, 10:26 AM
|
|
Elite
4,210 posts Joined: Jan 2003 From: Malaysia |
IE and Firefox might be the browsers most prefered by PC users..
but you have to take note that Safari has still a substantial amount of browser-shares when it comes to Apple. sigh.. i want my MacBook. cheers. |
| Change to: | 0.0145sec
0.18
5 queries
GZIP Disabled
Time is now: 28th November 2025 - 01:22 AM |