Jump to content

Twango

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by Twango

  1. Twango

    Connect Issue?

    Hi, i'm new to PHP, I do other languages, but i'm just starting php.my host provided me with this information:$mysql_host = "mysql9.000webhost.com";$mysql_database = "a5301810_***";$mysql_user = "a5301810_***";$mysql_password = "***";I've hidden the information for safety.How would I connect here?I dont know where the $mysql_database would go?i just want a really simple example.Thanks in advance.
  2. Hi, I'm using weebly, i embed the code in a code-box, for some reason it only works IN weebly.comWhen i publish my site it wont work!here's my code:<div style="background-color:green;text-color:red;border:2px solid red" ><font color="white" size="20px">Santa is in <p style="color:white;font-size:20px" id="ms">Loading...</p></font></div><script type="text/javascript" src="http://w3host.weebly.com/uploads/2/8/9/6/2896432/load.js"></script><script type="text/javascript">xmlDoc=loadXMLDoc("http://www.weebly.com/uploads/2/8/9/6/2896432/santatracker.xml");function doIt(){x=xmlDoc.getElementsByTagName("loc")[0]y=x.childNodes[0];m=y.nodeValue;document.getElementById("ms").innerHTML = m;}onload(doIt());</script>i have the XML and .js uploaded to a different server, in the site designer it works. But not once published. Can you help?
  3. Twango

    Linking.

    I use As3 in CS5. I added some text, highlighted it. added a link (say, google.com)then when i click on it, it shows an error like (this file is trying to access an outside file, and could be unsafe...)i click on the "fix" button, just wondering... would other people have to do this? If not, how would i make it so other people do it? I've seen it done before
  4. Twango

    Triple dots?

    Hello... i use CS5, and AS3 (Generally)And I send my Swfs to some of my friends. (Download) They always say that they see a blank white screen. With black dots (1....... 2..... 3..... 4.... 0..... etc)I even added a preloader... yet it still doesn't work. Please help
  5. Hi, i simply want to be able to edit the hue and brightness with AS3.This gives an error:import fl.motion.AdjustColor;NNT.AdjustColor.hue = 100;Please help!(Please, dont link! Just post the code)
  6. Twango

    Event

    Ok, so, basically, i cant have more then 1 set of ()'s
  7. Twango

    Event

    Hi, I use As3/CS5,I (generally) use:MovieClip.addEventListener(MouseEvent.CLICK, declareFunc);function declareFunc(M:MouseEvent):void{stop();}but i want to just do MovieClip.addEventListener(MouseEvent.CLICK, gotoAndStop(2));or somthing, but this gets an error, how can i fix this?Thanks
  8. Twango

    Not stopping?

    Uh actually it just stopped working, ur example is confusing... can u tell me why i get errors?
  9. Twango

    Not stopping?

    Weird, idk what i did, but whatever i did, it worked... strange :\ Thanks
  10. Twango

    Not stopping?

    I'm new to flash, i use CS5, and i have a problem.... i simply want to click on somthing i drew to make it stop.... sounds simple? right?Nope.I cant get it to work! heres the code i have:Buttonit.addEventListener(MouseEvent.CLICK, fl_ClickToStop);function fl_ClickToStop(event:MouseEvent):void{ stop();}What am i doing wrong?!?!?!?? please help
  11. Clear interval not working. why?<script type="text/javascript" language=javascript>function doClaim(){var nc=self.setInterval("alert('go')",1000);stop=setTimeout("nc=window.clearInterval(nc)",1500);}</script><input type="button" style="color:white;background-color:red;font-size:20px;font-weight:bold" value="CLAIM PRIZES!!!" onclick="doClaim()"/>
  12. How do you do audio repeat?
  13. why isnt this replacing the image?<html><body onLoad="setBg()"><script type="text/javascript">var morning=morningimg.png;var day="http://w3schools.com/js/b_pink.gif";var dusk=duskimg.png;var night=nightimg.png;function setBg(){document.getElementById('ict').src=day;}</script>What's Up? <img src="" id="ict"/><h1 onclick="setBg()">H1</h1></body></html>
  14. Twango

    Document.get

    Ok, so, i updated it but some of it still doesn't work. only the border color. how would i do the rest?<!--Scrollbar AKA Marquee Generator--><script type="text/javascript">function dirRep(tpart,choice,oth){var tp=tpart;var choiceup=choice;var choiced=choice;choiced=choice.replace("<","<");choiced=choiced.replace(">",">");choiced=choiced.replace("/","/");choiced=choiced.replace("</","</");document.getElementById(tpart).innerHTML=choiced;if (oth=="bordercolor"){document.getElementById('preview').style.borderColor=choiceup;}else{var b1=document.getElementById('preview').style;var b2=tp;var b3=choiceup;var tog=b1 + b2 + b3;tog}}</script><b>Direction:</b><select onchange="dirRep('direction',value)"><option value="left">Left</option><option value="right">Right</option><option value="up">Up</option><option value="down">Down</option></select><br/><b>Speed: </b><input type="text" id="spd"/><input type="button" value="OK" onclick="dirRep('scrollamount',document.getElementById('spd').value,'scrollamount')"/><br/><b>Border color: </b><input type="text" id="bcl"/><input type="button" value="OK" onclick="dirRep('bordercolor',document.getElementById('bcl').value,'bordercolor')"/><b style="color:red">•Put the word None for no border•</b><br/><b>Text color: </b><input type="text" id="tcl"/><input type="button" value="OK" onclick="dirRep('color',document.getElementById('tcl').value,'color')"/><br/><b>Background Color: </b><input type="text" id="bcol"/><input type="button" value="OK" onclick="dirRep('backgroundColor',document.getElementById('bcol').value,'backgroundColor')"/><br/><b>Width: </b><input type="text" id="wdt" value="300"/><input type="button" value="OK" onclick="dirRep('width',document.getElementById('wdt').value,'width')"/><br/><b>Height: </b><input type="text" id="hgt"/><input type="button" value="OK" onclick="dirRep('height',document.getElementById('hgt').value,'height')"/><br/><b>Text for scroller: </b><input type="text" id="tex"/><input type="button" value="OK" onclick="dirRep('value',document.getElementById('tex').value,'value')"/><br/><b style="color:red">You can now put HTML tags in the Text for scroller section</b><br/><!--Marquee Below--><p>Copy and paste this where you would put HTML or JavaScript <br/> Your scroller script:</p><!--Config--><b id="start"><marquee align="center" direction="</b><b id="direction">left</b><b id="other">" scrollamount="</b><b id="scrollamount">6</b><b id="other">" style="border:solid </b><b id="bordercolor">black</b> <b id="other">2px;color:</b><b id="color">black</b><b id="other">;background-color:</b><b id="backgroundColor">white</b><b id="other">" width="</b><b id="width">300</b><b id="other">px" height="</b><b id="height"></b><b id="other">px"></b><!--Value--><b id="value">Scroller Made With ScriptFreak.weebly.com</b><b id="fin"></marquee></b><br/><br/><marquee id="preview" align="center" direction="left" scrollamount="6" style="border:solid black 2px;color:black;background-color:white" width="300px" height="px"> Preview</marquee>
  15. Twango

    Document.get

    What exactly does this mean?
  16. Twango

    Guestbook Help!

    I got"Not FoundThe requested URL /cgi-bin/guestbook.cgi was not found on this server.Apache/2.2.3 (CentOS) Server at damienbt.com Port 80"I dont think the guestbook is on the server?Maybe try putting the CGI in the same folder as the html?
  17. Twango

    Document.get

    yo. I've been making a Marquee (lol) generator.i've got it so it updates the scripts. Yet doesn't update the preview. Can you help? <!--Scrollbar AKA Marquee Generator--><script type="text/javascript">function dirRep(tpart,choice){var choiceup=choice;var choiced=choice;choiced=choice.replace("<","<");choiced=choiced.replace(">",">");choiced=choiced.replace("/","/");choiced=choiced.replace("</","</");document.getElementById(tpart).innerHTML=choiced;if (tpart==value){}else{}if (tpart==bordercolor){document.getElementById('preview').border="solid 2px " + choiceup;}else{docoument.getElementById('preview').tpart=choiceup;}}</script><b>Direction:</b><select onchange="dirRep('direction',value)"><option value="left">Left</option><option value="right">Right</option><option value="up">Up</option><option value="down">Down</option></select><br/><b>Speed: </b><input type="text" id="spd"/><input type="button" value="OK" onclick="dirRep('scrollamount',document.getElementById('spd').value)"/><br/><b>Border color: </b><input type="text" id="bcl"/><input type="button" value="OK" onclick="dirRep('bordercolor',document.getElementById('bcl').value)"/><b style="color:red">•Put the word None for no border•</b><br/><b>Text color: </b><input type="text" id="tcl"/><input type="button" value="OK" onclick="dirRep('color',document.getElementById('tcl').value)"/><br/><b>Background Color: </b><input type="text" id="bcol"/><input type="button" value="OK" onclick="dirRep('backgroundColor',document.getElementById('bcol').value)"/><br/><b>Width: </b><input type="text" id="wdt" value="300"/><input type="button" value="OK" onclick="dirRep('width',document.getElementById('wdt').value)"/><br/><b>Height: </b><input type="text" id="hgt"/><input type="button" value="OK" onclick="dirRep('height',document.getElementById('hgt').value)"/><br/><b>Text for scroller: </b><input type="text" id="tex"/><input type="button" value="OK" onclick="dirRep('value',document.getElementById('tex').value)"/><br/><b style="color:red">You can now put HTML tags in the Text for scroller section</b><br/><!--Marquee Below--><p>Copy and paste this where you would put HTML or JavaScript <br/> Your scroller script:</p><!--Config--><b id="start"><marquee align="center" direction="</b><b id="direction">left</b><b id="other">" scrollamount="</b><b id="scrollamount">6</b><b id="other">" style="border:solid </b><b id="bordercolor">black</b> <b id="other">2px;color:</b><b id="color">black</b><b id="other">;background-color:</b><b id="backgroundColor">white</b><b id="other">" width="</b><b id="width">300</b><b id="other">px" height="</b><b id="height"></b><b id="other">px"></b><!--Value--><b id="value">Scroller Made With ScriptFreak.weebly.com</b><b id="fin"></marquee></b><br/><br/><marquee id="preview" align="center" direction="left" scrollamount="6" style="border:solid black 2px;color:black;background-color:white" width="300px" height="px"> Preview</marquee>
  18. Twango

    Question

    No, i use Google Chrome. But that's a good idea. And thanks
  19. Twango

    Question

    Why isnt this making it update on the select menu?<!--Scrollbar AKA Marquee Generator--><script type="text/javascript">dirRep(tpart,choice){document.getElementById(tpart).innerHTML=choice;}</script><select onchange="dirRep(dir,value)"><option value="left">Left</option><option value="right">Right</option><option value="up">Up</option><option value="down">Down</option></select><!--Marquee Below--><p>Your scroller script:</p><b id="start"><marquee direction="</b><b id="dir">left</b><b id="other">" amount="</b><b id="amount">10</b><b id="other">"</b>
  20. Twango

    While Loop?

    why isnt this working?<html><body><script type="text/javascript">var pixls=0;while (pixls<=500){var pixels=pixls + "px";document.getElementById('bigger').style.fontSize=pixels;pixls++;}</script></body></html><b id="bigger" onclick="bigrs()">WOO</b>
  21. Twango

    While Loop?

    Help!Does nothing!var pixls=0;while (pixls<=500){var pixels=pixls + "px";alert(pixels);pixls++;}
  22. I agree.I made a website that automatically redirects.Just to be safe it's best to put a link. If javascript isn't enabled they'd never even know the differance!
  23. Twango

    Mail?

    The mail thing doesnt work at allit does NOTHING.Why?!How do i fix it?
  24. Question. if the document has a title. Will it change with document.title =?
  25. Twango

    Clock?

    Hmm, i tried <!--Simple clock that will be at the bottom right & left of the screen--><body onload="tad()"></body><body onLoad="sp()"><head><script type="text/javascript">var d=new Date();function tad(){var day=d.getDay();var dy=["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var days=dy[day];var day2=d.getDate();var mon=d.getMonth() + 1;var yr=d.getYear() + 1900;document.getElementById('text1').innerHTML=days + " " + mon + "/" + day2 + "/" + yr + " ";var reset2=setTimeout("tad()",1000);} function sp(){var reset3=setTimeout("sp()",1000);var s=d.getSeconds();if (s < 10){s="0" + s;}else{}var m=d.getMinutes();if (m < 10){m="0" + m;}else{}var h=d.getHours();var sph=["NULL","1","2","3","4","5","6","7","8","9","10","11","12","1","2","3","4","5","6","7","8","9","10","11","12"];h=sph[h];var apm=["NULL","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","NOON","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM"];var ap=apm[d.getHours()];document.getElementById('text2').innerHTML=h + ":" + m + ":" + s + " " + ap;}</script></head><div id="clock1" style="background-color:black;color:white;position:fixed;left:0;bottom:0"><b id="text1">Please Wait...</b></div><div id="clock2" style="background-color:black;color:white;position:fixed;right:0;bottom:0"><b id="text2">Please wait...</b></div>but that's not working. why?
×
×
  • Create New...