Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: schoolBoy
Forum: Javascript How-To March 7th, 2007, 05:03 PM
Replies: 7
Views: 1,520
Posted By schoolBoy


Forum: Javascript How-To March 7th, 2007, 03:30 PM
Replies: 7
Views: 1,520
Posted By schoolBoy
DJ Kat I already installed the error console but...

DJ Kat I already installed the error console but just didnt knew where it was or how to use it, now I do XD
thnx for the tip

atm it says: "picture has no properties" line 181
and thats line:...
Forum: Javascript How-To March 7th, 2007, 02:16 PM
Replies: 7
Views: 1,520
Posted By schoolBoy
Ok I have some code, but it isnt working yet, can...

Ok I have some code, but it isnt working yet, can someone see if I typed something wrong here ? :

mijnImg.setAttribute("id", "foto" + i)

function findPos(id)
{
alert("hooi")
var picture =...
Forum: Javascript How-To March 7th, 2007, 01:29 PM
Replies: 7
Views: 1,520
Posted By schoolBoy
Finally found how I could solve my problem. I...

Finally found how I could solve my problem.
I can find the position of a picture with
picture.offsetLeft
picture.offsetTop
and then return those values,

and I can make the viewport move with...
Forum: Javascript How-To March 3rd, 2007, 11:40 AM
Replies: 7
Views: 1,520
Posted By schoolBoy
I'm trying to solve it with...

I'm trying to solve it with document.body.offsetWidth and
document.body.offsetHeight but it doesnt work ( dont know if its what i'm looking for )

But the code stops after the alert "hooi"...
Forum: Javascript How-To March 3rd, 2007, 11:07 AM
Replies: 7
Views: 1,520
Posted By schoolBoy
Moving viewport

Hi, I still want to create the postcardviewer in Javascript:
http://www.airtightinteractive.com/projects/postcardviewer/example/

My code now shows all the pictures, and when I click on one of...
Forum: Javascript How-To March 3rd, 2007, 09:16 AM
Replies: 6
Views: 1,994
Posted By schoolBoy
Yeah cool it works^^ for some stupid reason I...

Yeah cool it works^^
for some stupid reason I thought the variable would be made only once, but it resets the value to false everytime it enters the loop :)

Learning a bit everyday^^
Forum: Javascript How-To March 1st, 2007, 04:05 PM
Replies: 6
Views: 1,994
Posted By schoolBoy
Ok I couldnt find a function for the second time...

Ok I couldnt find a function for the second time I would use onClick.
So I made a new function with a Boolean:

function clickImg(img)
{
var geklikt = false

if(geklikt == false)
{...
Forum: Javascript How-To March 1st, 2007, 09:25 AM
Replies: 6
Views: 1,994
Posted By schoolBoy
Just one quick other question can I make the...

Just one quick other question

can I make the picture small again by clicking a second time on it

I cant find a function for that

( cause onClick is on click and it doesnt count )
Forum: Javascript How-To March 1st, 2007, 09:20 AM
Replies: 6
Views: 1,994
Posted By schoolBoy
" img.onclick = function(){vergrootImg(this);};...

"
img.onclick = function(){vergrootImg(this);};

then modify vergrootImg:

function vergrootImg(img)
{
img.setAttribute('width','400px');
img.setAttribute('height','400px');
}
Forum: Javascript How-To March 1st, 2007, 08:29 AM
Replies: 6
Views: 1,994
Posted By schoolBoy
send variable in function to another function

Hi people,
I have to make a assignment for school.
I have to make the same as on this website http://www.airtightinteractive.com/projects/postcardviewer/example/

only then in JavaScript ( cause...
Showing results 1 to 11 of 11

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.