Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 20 of 20
Search took 0.08 seconds.
Search: Posts Made By: Rok
Forum: DOM and JSON scripting 09-18-2002, 09:35 AM
Replies: 8
Views: 1,867
Posted By Rok
mission acomplished

BTW, I fixed the problem: here (http://www2.arnes.si/~rcarl/STJANI%20TEST/nova.html).

It works just for the first two styles... It was really easy ;)
Forum: DOM and JSON scripting 09-18-2002, 09:19 AM
Replies: 8
Views: 1,867
Posted By Rok
good thinking!

Yes, you're right!
So there's no way for me other than to change my script thus that it will change the rollover color depending on the style selected. So I guess I'll do that.

I have tried...
Forum: DOM and JSON scripting 09-17-2002, 12:33 PM
Replies: 5
Views: 1,792
Posted By Rok
Great, it works... Damn, I really suck with...

Great, it works...

Damn, I really suck with this event thing... I learned JavaScript from a book that did not contained little info about event and on top of it I didn't understand a damn thing...
Forum: DOM and JSON scripting 09-17-2002, 10:31 AM
Replies: 5
Views: 1,792
Posted By Rok
Here's the link: link...

Here's the link: link (http://www2.arnes.si/~rcarl/Explorer%20varna.html).

all_spans.onclick = function() {razsiri(this, event)}
Forum: DOM and JSON scripting 09-17-2002, 10:22 AM
Replies: 6
Views: 3,663
Posted By Rok
When you create an element using dom, you...

When you create an element using dom, you actually create it. And when you append it, you apend the element, not the reference. You don't copy it, you "move" it.

That's why DOM has supports the...
Forum: DOM and JSON scripting 09-17-2002, 10:11 AM
Replies: 5
Views: 1,792
Posted By Rok
oh, the explanation

The explanation of the code:

It's like Windows Explorer with folders in the left.
I have a "root" <span> (like My Computer :) ) and several <span>s inside the "My Computer" <span> (they have a...
Forum: DOM and JSON scripting 09-17-2002, 10:06 AM
Replies: 5
Views: 1,792
Posted By Rok
why does my code run only in IE?

What's wrong with this code?
When I run JavaScript Console in Mozilla it says:"E has no properties".

The code:



...
Forum: DOM and JSON scripting 09-17-2002, 09:51 AM
Replies: 8
Views: 1,867
Posted By Rok
What a reply :) Thnx! But still... I think...

What a reply :) Thnx!

But still... I think the script should work anyway. When you change the href of the link tag, borders should change too, at least until you roll your mouse over a div.

But...
Forum: DOM and JSON scripting 09-16-2002, 04:36 PM
Replies: 8
Views: 1,867
Posted By Rok
what about the mouse roll over thing?

Yes, as you said, resizing the window in Mozilla fixes the problem.

But what about mouse roll over?
Once you have rolled your mouse over a div, that div's border color won't change anymore by...
Forum: DOM and JSON scripting 09-16-2002, 12:12 PM
Replies: 8
Views: 1,867
Posted By Rok
Weird sh.t applying styles

I have this page that has 4 links in the bottom left that change the href attribute of the link tag and thus change the style sheet of the page.

If you have Mozilla, than try clicking on 2, than 3...
Forum: DOM and JSON scripting 09-11-2002, 12:14 AM
Replies: 9
Views: 4,992
Posted By Rok
Well, I still have to pass an argument to a...

Well, I still have to pass an argument to a function using addEventListener.
But I've solved my problem using one simple ****** variable :).
But thnx anyway!
Forum: DOM and JSON scripting 09-10-2002, 08:55 PM
Replies: 9
Views: 4,992
Posted By Rok
here's the example

I've written a short page just for this example. Please check it out.

page (http://www2.arnes.si/~rcarl/test_addEventListener.html)
Forum: DOM and JSON scripting 09-10-2002, 05:55 PM
Replies: 9
Views: 4,992
Posted By Rok
Now I cannot removeEventListener

Now that I've used
document.addEventListener("mousemove", function(event) {move (objectID)}, false);

now I cannot removeEventListener . I've tried many things:
...
Forum: DOM and JSON scripting 09-10-2002, 12:56 PM
Replies: 9
Views: 4,992
Posted By Rok
Cool, just what I need. Thanx!

Cool, just what I need.
Thanx!
Forum: DOM and JSON scripting 09-10-2002, 10:08 AM
Replies: 9
Views: 4,992
Posted By Rok
How to pass arguments independently or using addEventListener

Well, I use addEventListener and I cannot (or at least don't know how) pass arguments to the function.

Let's say we have a function:
function warning(arg1, arg2) {alert('Argument 1: ' + arg1 + ',...
Forum: DOM and JSON scripting 09-08-2002, 03:01 PM
Replies: 3
Views: 4,935
Posted By Rok
Yes I know about that but what I wanted to do is...

Yes I know about that but what I wanted to do is to dynamically set an additional event handler, which you can not do using javascript event handler properties.

Cause if you have
<img id="slika"...
Forum: DOM and JSON scripting 09-07-2002, 10:13 PM
Replies: 3
Views: 4,935
Posted By Rok
I just found out. IE doesn't support...

I just found out. IE doesn't support addEventListener but uses attachEvent instead.
Forum: DOM and JSON scripting 09-07-2002, 10:06 PM
Replies: 3
Views: 4,935
Posted By Rok
How to addEventListener?

OK, lets make this easy :). I wont go into details of my function, I would like to first see it work :). So here's the thing:

I've read a small tutorial about addEventListener but it doesn't work...
Forum: JavaScript programming 09-06-2002, 07:32 PM
Replies: 4
Views: 668
Posted By Rok
Great! It works. Thanx man!

Great! It works.
Thanx man!
Forum: JavaScript programming 09-06-2002, 06:41 PM
Replies: 4
Views: 668
Posted By Rok
Problem with a for loop and storing into variables

This works OK:

-----------------------------------------------------------------------
<img src="minimiraj.jpg" id="slika1">
<img src="zapri.jpg" id="slika2">
<img src="povecaj.jpg"...
Showing results 1 to 20 of 20

 
Forum Jump

All times are GMT +1. The time now is 03:54 PM.