+ 2

I want to know what a risk is in the code Matgaper with me

<script language="Javascript"><br /><br /><!-- This script and many more are available online free at --><br /><!-- The JavaScript Source!! http://javascript.internet.com --><br /><br /><!-- Begin<br />var COLOR = 999999<br />var woot = 0<br />function stoploop() {<br />document.bgColor = '#000000';<br />clearTimeout(loopID);<br />}<br />function loopBackground() {<br />if (COLOR > 0) {<br />document.bgColor = '#' + COLOR<br />COLOR -= 111111<br />loopID = setTimeout("loopBackground()",1)<br />} else {<br />document.bgColor = '#000000'<br />woot += 10<br />COLOR = 999999<br />COLOR -= woot<br />loopID = setTimeout("loopBackground()",1)<br /> }<br />}<br />// End --><br /></script><br /><br /><form name="background"><br /> <p align="center"><input type="button"<br /> value="ابداء العمل" onclick="loopBackground()"> <br><br /> <input type="button" value="توقف" onclick="stoploop()"> </p><br /></form><br />

9th Jun 2019, 7:49 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
1 ответ
+ 3
Hello friend, you included a long snippet that doesn't fit in Description section, thus as you can see, the snippet gets truncated. You better save the code in your profile - then edit the question to include the code link instead, if you still want help with the code that is. Here's a tutorial on how to share links around the neighborhood, mind that you can only view it using SoloLearn mobile app. May you find what you seek for 👍 P.S. It appears you had created 2 copies of the question unintentionally, will appreciate if you can remove the copy, it helps reducing duplicates really. https://www.sololearn.com/post/74857/?ref=app https://www.sololearn.com/Discuss/1837148/?ref=app
29th Jun 2019, 2:03 AM
Ipang