Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sorunome

Pages: 1 ... 564 565 [566] 567 568 ... 591
8476
Web Programming and Design / Re: Webdeveloping Questions
« on: April 03, 2012, 11:50:15 am »
Code: [Select]
<!DOCTYPE html>
<html><head>
<script type="text/javascript">
pics = new Array();
function pic0 () {
pics[0] = new Image();
pics[0].src = '../../knex/ballmachines/crazy/pics/FCLAHGTGD2J1W43.LARGE.jpg';
pics[0].addEventListener('load',pic1,false);
}
function pic1 () {
pics[1] = new Image();
pics[1].src = '../../knex/ballmachines/crazy/pics/FI0ABR4GD2JC4X3.LARGE.jpg';
pics[1].addEventListener('load',pic2,false);
}
function pic2 () {
pics[2] = new Image();
pics[2].src = '../../knex/ballmachines/crazy/pics/FODHF3KGD2JJN69.LARGE.jpg';
pics[2].addEventListener('load',pic3,false);
}
function pic3 () {
pics[3] = new Image();
pics[3].src = '../../knex/ballmachines/crazy/pics/FRG66RIGD2J1W44.LARGE.jpg';
pics[3].addEventListener('load',pic4,false);
}
function pic4 () {
pics[4] = new Image();
pics[4].src = '../../knex/ballmachines/crazy/pics/FSRATY0GD0R0CV4.LARGE.jpg';
pics[4].addEventListener('load',pic5,false);
}
function pic5 () {
pics[5] = new Image();
pics[5].src = '../../knex/ballmachines/crazy/pics/FTWRI1CGD2JC4X6.LARGE.jpg';
pics[5].addEventListener('load',pic6,false);
}
function pic6 () {
pics[6] = new Image();
pics[6].src = '../../knex/ballmachines/crazy/pics/FYQYILGGD2JC4X5.LARGE.jpg';
pics[6].addEventListener('load',pic7,false);
}
function pic7 () {
pics[7] = new Image();
pics[7].src = '../../knex/ballmachines/crazy/pics/FZMZ8OBGD0R0CVA.LARGE.jpg';
pics[7].addEventListener('load',pic8,false);
}
function pic8 () {
pics[8] = new Image();
pics[8].src = '../../knex/ballmachines/crazy/pics/crazy_top.jpg';
pics[8].addEventListener('load',pic9,false);
}
function pic9 () {};

8477
Web Programming and Design / Webdeveloping Questions
« on: April 03, 2012, 08:14:04 am »
Ok, I decided to launch a thread with webdeveloping questions as I have so many questions....I just like programming stuff for my website :D
Well, first of all, is it possible to open a link in a new tab with Javascript?
Second...Well, I want to store pics in an array (Javascript), the pics are the canvas pics, it is generated dynamic by php, and  want that the nexxt pic won't start loading before the one before was finished.
I wrote this:

Code: [Select]
<?php 
if ($handle opendir($folder))
{
echo "pics = new Array();";
$pics = array();
while (false !== ($entry readdir($handle)))
{
if (preg_match("/[^\.].*\.(jpg|jpeg|png|gif)$/i"$entry))
{
array_push($pics,$entry);
}
}
closedir($handle);
sort($pics);
$j 0;
foreach ($pics as &$pic)
{
echo "function pic$j () {
pics[
$j] = new Image();
pics[
$j].src = &#39;$folder/$pic&#39;;
pics[
$j].";$j++;echo"addEventListener(&#39;load&#39;,pic".$j.",false);
}\n"
;
}
echo "function pic".$j." () {};\n\n\n";
}
?>
Well, the errorkonsole of firefox gives me this:
[14:06:08.411] uncaught exception: [Exception... "The type of an object is incompatible with the expected type of the parameter associated to the object"  code: "17" nsresult: "0x80530011 (NS_ERROR_DOM_TYPE_MISMATCH_ERR)"  location: "[no need to know]"]
Please help me!

8478
Web Programming and Design / Re: Javascript execution order
« on: April 03, 2012, 03:14:12 am »
http://www.sorunome.de/webdeveloping/slideshow/
If I uncomment in the drawing part where the pics are drawen the onmouseout part and then hover above the pics start to blink.

8479
Web Programming and Design / Javascript execution order
« on: April 02, 2012, 06:25:51 am »
I got a little problem.
I have two elements that call javascript-stuff, one with onmouseout, one with onmouseover.
They are drawn ontop of each other, so if I enter the upper one with the mouse of the lower one onmouseout is called and then afterwards of the topper one onmouseover. I need to change the order of how that happens, please help me!

8480
Web Programming and Design / Re: Javascript mousetest
« on: April 01, 2012, 03:52:51 pm »
Ah, I get that. How do I do then what I really want?

8481
Web Programming and Design / Javascript mousetest
« on: April 01, 2012, 02:47:44 pm »
Well, I got this problem with javascript, I have to test if the mouse is over a element, but it must be in a if-condition.
Somehow this doesn't work: if (!document.getElementById('buttons').onmouseover)
Please help me!

8482
Web Programming and Design / Re: HTML <iframe> question.
« on: April 01, 2012, 02:46:09 pm »
ah, cool!

8483
Web Programming and Design / HTML <iframe> question.
« on: April 01, 2012, 05:47:42 am »
Hey, I got a quick question to <iframe>.
Well, I have something like <iframe src="http://www.blah.com/blubb.html"></iframe>
And now in http://www.blah.com/blubb.html is somewhere something like this: <a href="http://www.example.com">blahblahblah</a>
If I press now the link the other internetpage just opens inside the iframe but I want it to change the hole page. I hope you get what I mean, and please help me! (Or is that only possible with javascript so it is launched in a new tab?) :)

8484
Web Programming and Design / Re: PHP opendir() of an external page
« on: March 31, 2012, 04:34:41 pm »
Ah, ok, thanks for your help, it seems all-logical :)

8485
Web Programming and Design / PHP opendir() of an external page
« on: March 31, 2012, 05:07:15 am »
Hey, I wanted to know if, and if how, it is possible to opendir() of an external page, e.g. http://www.google.com

8486
Humour and Jokes / Re: Pi day
« on: March 17, 2012, 04:59:08 am »
I used to know 108 didgets....... forgot a lot of 'em

8487
TI Z80 / Re: zStart - an app that runs on ram clears
« on: February 28, 2012, 01:59:26 pm »
Yes, Yes and I don't know

8488
Miscellaneous / Re: Post your desktop
« on: February 27, 2012, 10:27:15 am »
What's in that non-stop nyan cat folder? xD

8489
TI Z80 / Re: GraMusic (Grammer)
« on: February 24, 2012, 04:57:07 am »
There isn't a Grammer section D: Also, apparently this still needs a bit of work >.> It works and I found it to work nicely, but it isn't overly amazing XD
http://www.omnimaga.org/index.php?board=202.0

8490
TI Z80 / Re: [AXE LIB] YAAM - Yet Another Axe Mapper
« on: February 24, 2012, 04:50:18 am »
Looks nice! Keep it going! :)

Pages: 1 ... 564 565 [566] 567 568 ... 591