|
|
|
|
![]() ![]() |
Feb 21 2008, 03:12 AM
Post
#11
|
|
|
PESTICIDAL MANIAC Group: Members Posts: 626 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 |
Maybe IE doesn't support it on option elements, but the option element indeed does support the onmouseover event.
I just did up a quickie for this found at http://supplies.net.nz/race.php Maybe I might have time to mess around and do the whole thing and show how images can be loaded inside a tooltip dialog, just like that found on DHTML goodies as well as fix IE to display it hovering over an option element, as long as javascript is enabled that is. Cheers, MC |
|
|
|
Feb 21 2008, 04:06 AM
Post
#12
|
|
|
Super Member Group: [HOSTED] Posts: 794 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 myCENTs:78.07 |
I just test your code and it only works with Firefox not with Internet Explorer or Opera, also, as i supose, you are using the jquery library that is not bad and i think that it can be useful, i never use the jquery library but i know it is a very good JS library. Also, i'm thinking about copying some part of code for testing with my code.
BTW, is it difficult to learn the JQuery library???? I'm start playing with another javascript library, Ext JS. Best regards, |
|
|
|
Feb 21 2008, 06:21 AM
Post
#13
|
|
|
PESTICIDAL MANIAC Group: Members Posts: 626 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 |
The jQuery library wasn't needed for this, basically it just cut my time down so I didn't have to write out the DOM manipulation which would have taken me a lot longer, also I would have had to use body onload to store an element in a variable, which does not work properly unless the document is fully loaded, and jQuery has a fix in there that allows you to manipulate the document after it's completed, that's my main reason for using it, only have tried it for 2 days and haven't looked through the source yet, but it's not a hard library to use but I think I'll be developing with it.
I knew IE did not work with this, I had no idea that Opera failed this too. There are other means of accomplishing this, though IE's support of the onmouseover event seems to dampen these methods except this one that I just thought of: An unordered list of links with the onmouseover event, the unordered list can be turned into a drop down select using javascript. OK, so that's just an idea but will have to see if I can put that into proof, since yea, most things I think of sound possible, but may not when trying to prove it. Cheers, MC P.S. OK, I re-looked over the code, and noticed that it's a select box that displays all the bikes, but we don't have to... if we use links, we can use the onmouseover event and also the onclick to post the required form submission needed to register it. This would be more effective than trying to work with our limited option element due to other browsers support. |
|
|
|
Feb 24 2008, 11:12 AM
Post
#14
|
|
|
Super Member Group: [HOSTED] Posts: 794 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 myCENTs:78.07 |
Thanks for the jQuery library information, i will download and test it soon, and you are right, manipulate the DOM is not easy but at the same is not difficult.
An Unordered list of links is a very useful for doing this like this, also instead of a select you can create buttons, you have many options to play with, of course, it is a nice idea. BTW, i use this method many times to create things like this, check my sites listed below to view in action, also, you are right, the OPTION element is very limited. Best regards, |
|
|
|
Feb 24 2008, 10:43 PM
Post
#15
|
|
|
Advanced Member Group: [HOSTED] Posts: 177 Joined: 19-January 08 From: Zagreb/Croatia Member No.: 27,735 |
need more help....
CODE <table width=70% height=100% border="1" bordercolor=red> <td valign=top align=center> Which class do you wanna race against? <form method="post" action="race.php"> <select size=5 name="class""> <option value="1">Class 50</option> <option value="2">Class 125</option> <option value="3">Class 250</option> <option value="4">Class 500</option> <option value="5">Class 600</option> </select><br> <input type=submit value=Race> </form> </td> </table> i need text pop-up just like with images but i want it in text format...can u do it for me pls? EDIT:i need it with if clause...like so CODE if($wins1['rank']=='Newbie') {echo'(under option one) Your chance to win is 50%'; echo'(under option two) Your chance to win is 40%'; echo'(under option three) Your chance to win is 33%'; echo'(under option four) Your chance to win is 20%'; echo'(under option five) Your chance to win is 10%';} if($wins1['rank']=='Learner') {echo'(under option one) Your chance to win is 60%'; echo'(under option two) Your chance to win is 50%'; echo'(under option three) Your chance to win is 40%'; echo'(under option four) Your chance to win is 33%'; echo'(under option five) Your chance to win is 20%';} by the way...what do u think about my game...anyone wanna join the project?? eggie.ismywebsite.com This post has been edited by Eggie: Feb 25 2008, 01:13 AM |
|
|
|
Feb 26 2008, 01:09 AM
Post
#16
|
|
|
Advanced Member Group: [HOSTED] Posts: 177 Joined: 19-January 08 From: Zagreb/Croatia Member No.: 27,735 |
i need to post something to get attention to my post....sorry about that... XD
This post has been edited by Eggie: Feb 26 2008, 01:09 AM |
|
|
|
Feb 26 2008, 01:48 AM
Post
#17
|
|
|
Super Member Group: [HOSTED] Posts: 794 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 myCENTs:78.07 |
need more help.... CODE <table width=70% height=100% border="1" bordercolor=red> <td valign=top align=center> Which class do you wanna race against? <form method="post" action="race.php"> <select size=5 name="class""> <option value="1">Class 50</option> <option value="2">Class 125</option> <option value="3">Class 250</option> <option value="4">Class 500</option> <option value="5">Class 600</option> </select><br> <input type=submit value=Race> </form> </td> </table> i need text pop-up just like with images but i want it in text format...can u do it for me pls? EDIT:i need it with if clause...like so CODE if($wins1['rank']=='Newbie') {echo'(under option one) Your chance to win is 50%'; echo'(under option two) Your chance to win is 40%'; echo'(under option three) Your chance to win is 33%'; echo'(under option four) Your chance to win is 20%'; echo'(under option five) Your chance to win is 10%';} if($wins1['rank']=='Learner') {echo'(under option one) Your chance to win is 60%'; echo'(under option two) Your chance to win is 50%'; echo'(under option three) Your chance to win is 40%'; echo'(under option four) Your chance to win is 33%'; echo'(under option five) Your chance to win is 20%';} by the way...what do u think about my game...anyone wanna join the project?? eggie.ismywebsite.com Tell me if i'm correct, what you need to show is the text that you are echoing???? About your game, does it work now??? because the last time that i try to re-register it doesn't work. Best regards, |
|
|
|
Feb 26 2008, 02:04 AM
Post
#18
|
|
|
Advanced Member Group: [HOSTED] Posts: 177 Joined: 19-January 08 From: Zagreb/Croatia Member No.: 27,735 |
i want to echo "Your chance to win is 40%" under option one
CODE <option value="1">Class 50</option> if $wins1['rank']is equal to 'Newbie'but only if someone clicks that option...do you understand now? the game worked and it still works....you should be able to register...my friends succeded and played it a bit but noone want to play cause right now it doesn't have any actual goal or anything...i need to make it to race against other people...i need to write tutorial,help,TOS,make 'upgrades' script...and other things... |
|
|
|
Feb 26 2008, 02:47 AM
Post
#19
|
|
|
Super Member Group: [HOSTED] Posts: 794 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 myCENTs:78.07 |
i want to echo "Your chance to win is 40%" under option one CODE <option value="1">Class 50</option> if $wins1['rank']is equal to 'Newbie'but only if someone clicks that option...do you understand now? the game worked and it still works....you should be able to register...my friends succeded and played it a bit but noone want to play cause right now it doesn't have any actual goal or anything...i need to make it to race against other people...i need to write tutorial,help,TOS,make 'upgrades' script...and other things... Ok, check this Text Shows Up on Option Change Version 1 if it is what you want. And i just register myself and play your game, as i see you are on the right way. Best regards, |
|
|
|
Feb 26 2008, 05:06 AM
Post
#20
|
|
|
Advanced Member Group: [HOSTED] Posts: 177 Joined: 19-January 08 From: Zagreb/Croatia Member No.: 27,735 |
Ok, check this Text Shows Up on Option Change Version 1 if it is what you want. And i just register myself and play your game, as i see you are on the right way. Best regards, that's it...thats what i needed...thnx |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 01:23 PM |