Welcome Guest ( Log In | Register )



3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Image Popup On Mouseover
mastercomputers
post Feb 21 2008, 03:12 AM
Post #11


PESTICIDAL MANIAC
Group Icon

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
Go to the top of the page
 
+Quote Post
TavoxPeru
post Feb 21 2008, 04:06 AM
Post #12


Super Member
Group Icon

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,
Go to the top of the page
 
+Quote Post
mastercomputers
post Feb 21 2008, 06:21 AM
Post #13


PESTICIDAL MANIAC
Group Icon

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.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Feb 24 2008, 11:12 AM
Post #14


Super Member
Group Icon

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,
Go to the top of the page
 
+Quote Post
Eggie
post Feb 24 2008, 10:43 PM
Post #15


Advanced Member
Group Icon

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
Go to the top of the page
 
+Quote Post
Eggie
post Feb 26 2008, 01:09 AM
Post #16


Advanced Member
Group Icon

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
Go to the top of the page
 
+Quote Post
TavoxPeru
post Feb 26 2008, 01:48 AM
Post #17


Super Member
Group Icon

Group: [HOSTED]
Posts: 794
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:78.07



QUOTE(Eggie @ Feb 24 2008, 05:43 PM) *
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,
Go to the top of the page
 
+Quote Post
Eggie
post Feb 26 2008, 02:04 AM
Post #18


Advanced Member
Group Icon

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...
Go to the top of the page
 
+Quote Post
TavoxPeru
post Feb 26 2008, 02:47 AM
Post #19


Super Member
Group Icon

Group: [HOSTED]
Posts: 794
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:78.07



QUOTE(Eggie @ Feb 25 2008, 09:04 PM) *
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,
Go to the top of the page
 
+Quote Post
Eggie
post Feb 26 2008, 05:06 AM
Post #20


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 177
Joined: 19-January 08
From: Zagreb/Croatia
Member No.: 27,735



QUOTE(TavoxPeru @ Feb 26 2008, 03:47 AM) *
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 smile.gif
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php: Write Random Text As Image(3)
  2. Is It Possible To Create A String Image In Chinese(0)
  3. Saving A Php Generated Image To The Server(5)
  4. How Do I Make PHP Based Image Gallery Like This?(20)
  5. Uploading Image Via Admin Menu?(2)
  6. How Do I Resize An Image On The Fly?(8)
  7. Script For Viewing A Random Image Needed(3)
  8. Php :: Adding Image Over Image(5)
  9. Image Works With Php And Gd(3)
  10. Php :: Image Pixel Per Inch And Conversion(1)
  11. Need Help With Background Image...(12)
  12. Dynamic Gd Image(2)
  13. Dynamic Php Image And Better Php Code Question(10)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 01:23 PM