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
Pop up window u javi!

 
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
MokA



Joined: 10 Jun 2006
Posts: 15

PostPosted: 21.10.2006 15:34    Post subject: Pop up window u javi! Add user to your forum ignore list Reply with quote

Dakle kao sto naslov rece....
Sajt je radjen u flashu inace i dodala sam na gumb slijedece :

on (release) {
getURL ("JavaScript:pop();");
}

A u Html fajlu:

<SCRIPT LANGUAGE="JavaScript">
function pop() {
window.open("galerija.html","height=400,width=300,left=0,top=0");
}
</script>


zna netko u cemu bi mogao bit problem da mi doticno ne djeluje ??? :/

Lp
Back to top
View user's profile Send private message Send e-mail
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 21.10.2006 18:11    Post subject: Add user to your forum ignore list Reply with quote

Probaj u 2. liniji Javascripta umijesto

window.open("galerija.html","height=400,width=300,left=0,top=0");

staviti

prozor2=window.open("galerija.html","prozor2","height=400,width=300,left=0,top=0");
prozor2.focus();


i zapamti, Java je nesto drugo nego Javascript (jer ti mozda dosta ljudi koji poznaju JS a ne poznaju Javu nece procitati post)
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 21.10.2006 19:14    Post subject: Add user to your forum ignore list Reply with quote

Dabac, mislim da bi primijetila da se desio pop-under Smile

Moka, parametri za window.open su URL, window name i options

to znači da između ova dva parametra koja imaš jednostavno ubaci još jedan, koji je proizvoljno ime prozora (recimo "galerija")
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 23.10.2006 15:35    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
Dabac, mislim da bi primijetila da se desio pop-under Smile


Mozda je, mozda nije, focus je tu za svaki slucaj - ja ga obicno stavljam; ali bitnije je da sam naveo u liniji iznad ono u cemu je problem
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 23.10.2006 18:11    Post subject: Add user to your forum ignore list Reply with quote

Gle stvarno, pa postao si rješenje i prije mene

možeš i ovako ako ti ne treba variabla za nešto drugo osim fokusa:
Code:
window.open("galerija.html", "galerija", "opcije ...").focus();
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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