copied from firebug console...
uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.scroll]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://ticktach.biz/news/ :: <TOP_LEVEL> :: line 19" data: no]
Line 0
Follow this url, the one above is iframe contents: http://ticktach.com
This is the code for the page in the iframe that is causing the problem:
PHP Code:
<?php $type=$_REQUEST["Type"]; $term=$_REQUEST["Term"]; $count=$_REQUEST["Count"]; $menu=$_REQUEST["Menu"]; $ch = curl_init(); $timeout = 0; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, "http://api.bing.net/json.aspx?AppId=97gyeg7gtt87tt7tf8t7vy70t7yv097ty4v97ytn57nn57n753&Market=en-US&Query=".$term."&Sources=".$type."&".$type.".Count=".$count."&JsonType=raw"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $search = curl_exec($ch); curl_close($ch); $Response = json_decode($search,true); if ($term == "Top")$term = "Top News Stories"; $term = str_replace("site:","",$term); $term = explode(".", $term); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <link href = "style.css" rel = "stylesheet" type = "text/css"> <script type = 'text/javascript' src = '../scriptaculous/lib/prototype.js'></script> <script type = 'text/javascript' src = '../scriptaculous/src/scriptaculous.js'></script> </head> <body> <div id = "container"> <div id = "text1" style = "top: '0px'"> <?php foreach($Response['SearchResponse'][$type]['Results'] as $item) { echo(" <div onmouseover = \"clearInterval(Scroll)\" onmouseout = \"clearInterval(Scroll); Scroll = setInterval ('scroll()', 50)\"> <div class = 'Source'>$term[0]</div> <div class = 'Title'><a href='$item[Url]' target='_blank' style='color:yellow'><b>$item[Title]<b></a></div> <div class = 'Description' style='color:white'>$item[Snippet]</div> <br> <div> "); } ?> </div> <div id = "text2" style = "top: '0px'"> <?php foreach($Response['SearchResponse'][$type]['Results'] as $item) { echo(" <div onmouseover = \"clearInterval(Scroll)\" onmouseout = \"clearInterval(Scroll); Scroll = setInterval ('scroll()', 50)\"> <div class = 'Source'>$term[0]</div> <div class='Title'><a href = '$item[Url]' target='_blank' style='color:yellow'><b>$item[Title]<b></a></div> <div class='Description' style='color:white'>$item[Snippet]</div> <br> <div> "); } ?> </div> </div> <?php if(file_exists("../fills/$menu")) { echo(file_get_contents("../fills/$menu")); } ?> <script type = "text/javascript"> $("container").style.height = document.viewport.getHeight() + 'px'; $("container").style.width = document.viewport.getWidth() + 'px'; Scroll = setInterval ("scroll()", 50); function Scroll() { if (parseInt($('text1').style.top) == 0) { $('text2').style.top = $('text1').getHeight() + 'px'; } if (parseInt($('text2').style.top) == 0) { $('text1').style.top = $('text2').getHeight() + 'px'; } $('text1').style.top = parseInt($('text1').style.top) - 1 +'px'; $('text2').style.top = parseInt($('text2').style.top) - 1 +'px'; } </script>
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Last edited by Sleeping Troll; 08-28-2010 at 12:55 AM..
|