Computer Science Canada buttons and clicks |
Author: | air_force91 [ Sat Jan 10, 2004 1:27 pm ] | ||
Post subject: | buttons and clicks | ||
ive made buttons and stuff...but i don't know how to make a code for the user to click anywhere inside the buttons and be taken to specific pages...here's my code:
if u have any suggestions so i can improve the look of my page or the buttons...pls tell me....thanx for ur help... ![]() |
Author: | santabruzer [ Sat Jan 10, 2004 1:37 pm ] | ||||
Post subject: | |||||
use "mousewhere".. it'll return you where the mouse is.. and if the button is pressed.. so that
Then you can make an if statement, that
It's pretty straight forward.. but if you get confused, look in help! ![]() |
Author: | CITC [ Sat Jan 10, 2004 1:38 pm ] | ||||
Post subject: | |||||
you need to use the Mouse.Where command and make if statements
or you can do the cheap way out and do:
|
Author: | CITC [ Sat Jan 10, 2004 1:39 pm ] |
Post subject: | |
lol 1 minute before me ![]() |
Author: | santabruzer [ Sat Jan 10, 2004 1:39 pm ] |
Post subject: | |
ha ha.. the second time it happened to me.. and it doesn't matter which Mouse Where you use.. they are both identical... |
Author: | air_force91 [ Sat Jan 10, 2004 1:41 pm ] |
Post subject: | |
do u know how to make a picture appear as the background of the execution window? coz my page seems too simple... |
Author: | santabruzer [ Sat Jan 10, 2004 1:50 pm ] |
Post subject: | |
i would think Quote: picUnderMerge This draws the picture, but only where the background color was displayed underneath it. The effect of this is to make the picture appear to be displayed behind the background. |
Author: | air_force91 [ Sun Jan 11, 2004 11:18 am ] | ||
Post subject: | this is what ive donw | ||
ive inserted ur code but it still doesn't work...
can u tell me y the click's not working? i can't figure it out...thanx. |
Author: | santabruzer [ Sun Jan 11, 2004 11:23 am ] | ||
Post subject: | |||
here.. try this:
|
Author: | air_force91 [ Sun Jan 11, 2004 12:16 pm ] | ||
Post subject: | |||
oppsss sorry...im getting soo stressed out from all the exams and stuff...im sorry...i copied the wrong page of code...now this is the page where i inserted the mouseclick function...and it doesn't work....
|
Author: | air_force91 [ Sun Jan 11, 2004 12:18 pm ] |
Post subject: | |
and u know the "picUnderMerge"...well I can't view my pic when i use the command...i want my picture to be set as the background of the screen but using this...i can;t see the pic at all... |
Author: | santabruzer [ Sun Jan 11, 2004 12:20 pm ] |
Post subject: | |
here.. post the pic.. and the Turing File.. |
Author: | air_force91 [ Sun Jan 11, 2004 12:32 pm ] |
Post subject: | |
[img]www.extendinc.com/ computer.jpg[/img] that's the image i want as the background...and attached is the main page...thanx sooooo much... |
Author: | santabruzer [ Sun Jan 11, 2004 2:59 pm ] | ||
Post subject: | |||
Here it is (the pic is attached):
|
Author: | CITC [ Sun Jan 11, 2004 6:12 pm ] | ||
Post subject: | |||
just from looking quickly at the code (I didn't download the files either) you have no loop around your mousewhere bit. Therefore there is only a split-second when if you click the mouse it'll do anything.
|
Author: | santabruzer [ Sun Jan 11, 2004 7:09 pm ] |
Post subject: | |
just don't forget the getch command in that loop, or you'll wind with clicking the button, and the keyboard not responding.. |