Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Javascript dilema, poglavlje 1.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 16.09.2004 12:05    Post subject: Javascript dilema, poglavlje 1. Add user to your forum ignore list Reply with quote

Samo provjeravam moze li se ovo, a ako se moze ne bi bilo lose da netko napise rjesenje.. Dakle, treba promijeniti boju slova na glavnoj stranici pomocu stranice koja se loada u iframe...

document.fgColor="#FF0000"

tako promijenim boju slova na stranici na kojoj je to napisano, ali meni treba ono drugo.. Pokusavao sam na par nacina, ali nema rezultata...
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 16.09.2004 12:12    Post subject: Add user to your forum ignore list Reply with quote

top.document....?

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 16.09.2004 13:48    Post subject: Add user to your forum ignore list Reply with quote

che.UP wrote:
top.document....?


probao sam to prije... dobijem "access denied" Rolling Eyes
Back to top
View user's profile Send private message MSN Messenger
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 16.09.2004 15:16    Post subject: Add user to your forum ignore list Reply with quote

Probaj (pišem malo napamet) u vanjski file:
Code:

function promjeniBojuSlova() {
window.top.style.color="#f00";
}
window.onload=function() {
promjeniBojuSlova();
}

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 16.09.2004 15:38    Post subject: Add user to your forum ignore list Reply with quote

marac wrote:
Probaj (pišem malo napamet) u vanjski file:
Code:

function promjeniBojuSlova() {
window.top.style.color="#f00";
}
window.onload=function() {
promjeniBojuSlova();
}


citiram:

'window.top.style' is null or not an object
Back to top
View user's profile Send private message MSN Messenger
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 16.09.2004 19:30    Post subject: Add user to your forum ignore list Reply with quote

Tu nađi što ti treba:
http://www.w3schools.com/js/js_examples_3.asp

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 16.09.2004 21:32    Post subject: Add user to your forum ignore list Reply with quote

marac wrote:
Tu nađi što ti treba:
http://www.w3schools.com/js/js_examples_3.asp


trazio sam vec, ali nema nista u vezi toga..
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 16.09.2004 22:03    Post subject: Add user to your forum ignore list Reply with quote

Platypus wrote:
che.UP wrote:
top.document....?


probao sam to prije... dobijem "access denied" :roll:


hm, ja sam iso maloprije probat i radi normalno...
index.html
Code:
<html>
<body>
iframe
<iframe src="frame.html" name="iframe">noframes</iframe>
haha some txt
</body>
</html>


frame.html
Code:

<html>
<body onload="top.document.fgColor='#00ff00';">
<button onclick="top.document.fgColor='#000000'"; value="klik">black
</button><button onclick="top.document.fgColor='#ff0000'"; value="klik">red
</button></body>
</html>


radi i u ff i ie...

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 17.09.2004 23:33    Post subject: Add user to your forum ignore list Reply with quote

Hvala!

Meni jos uvijek ne radi. Vjerojatno zbog glavne stranice... (access denied) .. No nema veze..
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 18.09.2004 00:14    Post subject: Add user to your forum ignore list Reply with quote

Platypus wrote:
Hvala!

Meni jos uvijek ne radi. Vjerojatno zbog glavne stranice... (access denied) .. No nema veze..


a di tocno dobijes taj access denied? da nemas mozda xp sa sp2? to navodno radi probleme javascriptu....

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 18.09.2004 00:41    Post subject: Add user to your forum ignore list Reply with quote

che.UP wrote:
Platypus wrote:
Hvala!

Meni jos uvijek ne radi. Vjerojatno zbog glavne stranice... (access denied) .. No nema veze..


a di tocno dobijes taj access denied? da nemas mozda xp sa sp2? to navodno radi probleme javascriptu....
A to hoće napravit i Norton

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 18.09.2004 01:46    Post subject: Add user to your forum ignore list Reply with quote

imam dobar stari win98..

evo o cemu se tocno radi Very Happy

na jednom sajtu imaju shoutbox kojeg su "fantasticno" napravili pa dopustaju da upises HTML i javascript.. vec sam im par puta preusmjerio posjetitelje na neki drugi sajt, otvarao popupove i radio slicne gluposti.. a oni ocito to ne znaju srediti, a imaju par tisuca posjeta dnevno.. ovo je bilo moj sljedeci korak:

<script>function B(){D=Math.round(999999*Math.random());top.document.fgColor="#"+D}setInterval(B,1);</script>

ponekad mi je dosadno... Wink
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 18.09.2004 11:30    Post subject: Add user to your forum ignore list Reply with quote

molim te drugi put napisi da ti treba za drkanje pa da ne gubimo vrijeme. hvala.

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 18.09.2004 12:17    Post subject: Add user to your forum ignore list Reply with quote

che.UP wrote:
molim te drugi put napisi da ti treba za drkanje pa da ne gubimo vrijeme. hvala.


Ma ne.. Stvar je u tome da meni to ne radi na kompu na win98..
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group