Code: <html> <head> <title>Waster</title> <script> init = function(){ setInterval(function(){ if (true){}else{new function(){for(var i = 10000;i--;) {"Object".subString(1,2)}}}},1000); } </script> </head> <body onload=init()> </body> </html> Because Im not a hardware guy Im not sure how to measre the wasred resouces here any help wil get my thanks. Only the
Articles similar to Please, tell me how many resources this code will waste:
Add fullscreen function to random background code
Found this random background img code that works great:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script type="text/javascript">
function changeImg(imgNumber) {
var myImages = ["images/image0.jpg", "images/image1.jpg", "images/image2.jpg", "images/image3.jpg"]; Do you think this will work?
PHP Code:
<?php
define('IN_SCRIPT', true);
function error($msg) {
?>
<script language="JavaScript">
<!--
alert("<?php echo $msg; ?>");
history.back();
//-->
</script>
<?php
exit;
}
variable interval
Im trying to make a function/object that acts like setInterval(). One major differance being is i can change the interval rate at any given time.
I have an example below:
Code:
<script type='text/javascript'>
window.setVariableInterval = function(callbackFunc, timing){
var variableInterval = {
firstInterval: timing,
interval: timing,
callback: callbackFunc,centering li, when commented
hi folks,
i am trying achieve something. i have this li with inline style. what i want is suppose i have this code
HTML4Strict Code:
<html>
<head>
<title></title>
</head>
<body>
<ul>
<li>Home</li>
<li>About</li>
<li>Gallery</li>
<li>Contact</li>
</ul>
</body>
<html>
and css for ul asVideo Controller Skins
Hi there,
I have a problem with actionscript
I have create a flash player but i cannot auto hide the logo all the rest work fine
Regards,
File: http://www.amaze.com.mt/over_html_video/skin.zip
Example: http://www.amaze.com.mt/over_html_video/example.html
Code:
function getSkinInfo():Object {
var res:Object = new Object();
res.video = {x:10, y:10, w:-20, h:-47};
res.mode = "disable";help with this jquery image loading
I have this code that works well to replace the main image and also sets the link class active for link just pressed.
Code:
<script type=\"text/javascript\">
$(document).ready(function(){
$(\".thumbs a\").click(function(){
var largePath = $(this).attr(\"href\");
var largeAlt = $(this).attr(\"title\");
$(\"a\").removeClass(\"viewing\");
$(this).addClass(\"viewing\");Help? Show JavaScript Once Per Day Only?
Help. How do I show the below JavaScript code to each unique visitor only once per day or any amount of days I want to set?
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<!-- this goes anywhere in the root of the -->

