| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> Heh. <1> ^^ <0> "Can I private you" <1> private msg <1> :P <0> Used to be called "msg" back in the day. <1> ^^ ok chief ! <0> Then someone figured out that it was too long and started using "pm" <0> But I have to admit that "pv" is new to me. <1> i was using pm too <1> but they told me pv <1> i dunno <1> :) <0> Silly people. <1> anyone can help me ? <0> You can.
<1> i just want want to call " javascript:nextSlide() " every X seconds <1> i dunno how to do <0> Ewwww <1> they told me timer <2> setTimeout("nextSlide()", 5000); <2> that calls nextSlide() every 5 seconds <0> At least he doesn't use it in the event handlers <1> can i put this in my html page ? <0> But you shouldn't use "javascript:" anywhere. <0> Ever. <2> you can use javascript: in links <0> But you shouldn't. <2> <a href="javascript:history.go(-1)">blah</a> <2> you can. no such thing as "you shouldn't". if you weren't supposed to, it wouldn't be there <1> yes it was in a href <0> It's there because it's a remnant of archaic code. <1> it's the button link to change the image :P <0> You should use event handlers. <1> what is "blah" ? <1> just joking ^^ <2> Pilum: and no one took it off, which means its alright to use it <2> i've seen tons of sites use it <2> google for one <0> There are people who rape and torture too, but that doesn't justify others doing it. <0> Most use it out of ignorance. <2> i can't see how you can ***ociate the two <2> okay, fine <2> i respect your opinion <1> how can i put this : " setTimeout("nextSlide()", 5000); " in my html code ? <2> Djanov: put it in a <script> tag? <1> i'm really sorry bcause i'M newbie <1> script type ? <1> :( <2> javascript <0> type="text/javascript" <2> text/javascript <2> or language="javascript" <0> Again you come with outdated code. <2> it works. all browsers support it <1> is this okay ? <0> Does the phrase "backwards compability" have any meaning to you? <1> <script type="text/javascript" src="Java/slideshow.js"></script> <1> <script type="text/javascript' setTimeout("nextSlide()", 5000)></script> <0> <script type="text/javascript'>setTimeout("nextSlide()", 5000);</script> <1> oh thanks i'm checking ^^ <1> i have a problem on my html code <1> */script is not red <2> its your editor's syntax highlighter <2> don't worry about it <3> "text/javascript' should be "text/javascript" <3> and the > from one of your script tags is in the wrong place <3> the middle one <1> it doesn't work :( <1> so ? <1> where should be the > ? <1> RoBorg ? <4> http://www2.foxsearchlight.com/thankyouforsmoking/teaser/ <3> <script type="text/javascript' setTimeout("nextSlide()", 5000)></script> should be <script type="text/javascript">setTimeout("nextSlide()", 5000)</script>
<1> thanks it's working BUT :) <1> it change the image just once :( <1> why ? :( <2> you need an interval timeout insted <1> how can i do it PLEASE <2> setInterval("nextSlide()", 5000) <2> use that insted <1> wow it's working ! <1> you are genius! <1> thanks very much to everyone who helped me <1> you saved my life guys ! <1> ^^ <2> now pay up <1> http://banknoten-online.com/grafik/banknoten/us_10_dollar_1999_v.jpg <1> ^^ 10 dollar as i promised <2> awesome <2> now i can buy that pony <1> ^^ <1> i have to go , i want to say thanks again to everyone who helped me <5> oi <5> anyone do ajax here ? <0> Occationally. <5> u use any compiler ? <0> Compiler? <5> IDE <5> verify syntax and stuff <0> A compiler is a program which compiles code heh. <0> An IDE is something else. <5> indeed.. <0> I usually use either gedit or SciTE. <5> but intelliJ also kind of compile the code with tomcat <5> anyways.. <1> hello ^^ <1> i need help concerning p***ing a php variable into a javascript code :( <0> Echo its value in. <1> function showFullSize(){ <1> openPictureWindow('$array$imagepath', 800, 600, '$trombipromo[prenom] $trombipromo[nom]'); } <1> i looked in google <0> var varname = "<? echo $varname; ?>" <1> trying echo the value <1> ah i can't echo inside the '' ? <5> dont u have to parse it lol ? <0> Yes, but it must be insise a php section. <0> openPictureWindow('<? echo $array$imagepath; ?>' <1> yes yes <1> it doesn't worked <1> why ? <1> i should but inside a variable before ? and then put the new variable in the function ? <1> but=put* <0> You should go learn some more about how PHP works I think. <1> i know php .. <1> much than javascript :P <1> openPictureWindow('<? echo $array$imagepath; ?>' Does'nt work Pilum <6> ffs <6> openPictureWindow('<?php echo $array.$imagepath; ?>'); <0> I only did paste parts of the function, hoping you'd take the hint and understand how to proceed with the rest of it. <0> View the html source it outputs and see if it looks ok there... <1> i have done as you said but it doesn't work :( <1> openPictureWindow('<?php echo $imagepath; ?>', 800, 600, '<?php echo $trombipromo[prenom] $trombipromo[nom]); ?>'); <1> the echo after 600 is the title of the new window <0> And you see nothing wrong with that? <1> to be honest , no :( <0> Then look again. <0> Your PHP script should give you a parse error on it. <1> on my main page i echo the script <1> echo"<script type='text/javascript' src='Java/newphotowindow.js'></script>"; <6> pilum op me please <1> openPictureWindow is my link to open my image on a new page with size and title <7> how about viewing the source on the browser? <0> openPictureWindow('<?php echo $imagepath; ?>', 800, 600, '<?php echo $trombipromo['prenom'].' '.$trombipromo['nom']; ?>'); <0> If you don't understand it now then you're on your own <8> :D
Return to
#javascript or Go to some related
logs:
#mirc Nalfeshne
ritalin, infantry
#linuxhelp #linuxhelp unresolved token (0A000014) _CxxThrowException #chatzone #london #linux windows vodbad
|
|