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
Sto ne valja u ovom JavaScriptu ???

 
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
Dirt McGrit



Joined: 03 Oct 2003
Posts: 291
Location: iza ugla

PostPosted: 10.04.2006 12:15    Post subject: Sto ne valja u ovom JavaScriptu ??? Add user to your forum ignore list Reply with quote

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=620,height=470,scrollbars=no,statusbar=no');
return false;
}
//-->
</SCRIPT>

<a href="IMG_reference/slika_01_B.jpg" onClick="return popup(this, 'Slika01')"><img src="IMG_reference/slika_01_T.jpg" name="slika_01_T" width="242" height="144" border="0" id="slika_01_T"></a>

pop-up mi se generira ali stavlja oko slike 10px bijeli border... velicina slika je 600x450px, ali ali kad stavim te iznose u skriptu onda mi stavlja scrollbarove i smanji sliku na 96%. moram povecati na 620x470 ali mi onda stavi border. u cemu je problem??? skinuo sam 50-tak raznih skripit i sa svakom se javlja isti problem. vec sam lud ko siba Very Happy

hvala na pomoci

_________________
Baby, I got your money!
Back to top
View user's profile Send private message
vedran



Joined: 08 Sep 2003
Posts: 458

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

Vjerojatno trebas pop-up definirati margin i padding na 0px.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

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

to nije zbog javascripta, to ce se svaki put desit kad otvoris sliku u browseru zbog njegovih defaultnih margina. mozes otvoriti html file i u njemu imat <img src-...> i stavit mu margine na nulu i onda ces dobit to sto hoces

_________________
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
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

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

alternativa je da ti popup bude za 20ak px visi i siri od slike pa ces imat ujednacen bijeli border svuda i nece ti skejlat sliku

_________________
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
Dirt McGrit



Joined: 03 Oct 2003
Posts: 291
Location: iza ugla

PostPosted: 10.04.2006 13:10    Post subject: Add user to your forum ignore list Reply with quote

ok, hvala

_________________
Baby, I got your money!
Back to top
View user's profile Send private message
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 10.04.2006 13:21    Post subject: Add user to your forum ignore list Reply with quote

A možeš i js-om prozoru postaviti marginu na nulu.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dirt McGrit



Joined: 03 Oct 2003
Posts: 291
Location: iza ugla

PostPosted: 10.04.2006 13:56    Post subject: Add user to your forum ignore list Reply with quote

@ vedran: kak to ide??

_________________
Baby, I got your money!
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 10.04.2006 16:05    Post subject: Add user to your forum ignore list Reply with quote

any_element.style.margin = '0';
Back to top
View user's profile Send private message Send e-mail Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 10.04.2006 16:11    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
any_element.style.margin = '0';


meni to ne radi u firefoxu?!?!

_________________
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: 11.04.2006 17:58    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
any_element.style.margin = '0';

isuse!!

a ovak, jel ti ovak radi u Fx-u?
Code:
document.getElementsByTagName(*).style.margin = '0';

_________________
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
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 11.04.2006 20:17    Post subject: Add user to your forum ignore list Reply with quote

Question uopće vas ne kužim

Che: wtf??
Maratz: style property na collectionu??

Znam da ste zajebanti ali ja eto (iskreno) fakat ne znam kad se šalite a kad ste ozbiljni... daj bar neki smajlić tu ili tamo Confused

McGrit: http://odin.irb.hr/~mislav/tmp/test.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 12.04.2006 11:25    Post subject: Add user to your forum ignore list Reply with quote

@sulien: evo smajli Smile Smile Smile

_________________
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
Dirt McGrit



Joined: 03 Oct 2003
Posts: 291
Location: iza ugla

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

thenk ju veri mac ! Very Happy

_________________
Baby, I got your money!
Back to top
View user's profile Send private message
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