JavaScript - Javascript Blocks Another
Hi there,
I have been using a javascript to show the news on the front page. It works ok. But I need another one to scroll the product images, again on the frontpage. But when I start to use the second one I see all my news messed up together. What can be the reason and how can I solve that? The second (image scroller) javascript is jquery.tools.min.js and the first one is a Joomla! module. thanks in advance Similar TutorialsThis was working. Is there a way around this ? Quote: <input type="button" onclick="document.getElementById('mainContenceFrame').src = 'http://images.google.com/images?q="antrodia serialis"'" value="antrodia serialis" style="color: green;"> --> FF,GC: Quote: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.hostname]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://searchshield/content/overlay.js :: onContentLoaded :: line 918" data: no] IE says: Quote: This content cannot be displayed in a frame To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame. What you can try: Open this content in a new window Hey I have ben writing & understanding this code but I can't make this work, have done my homework..so I have atleast tried http://jsfiddle.net/defencedog/hLZCt/ hi all, my indexof() function is not being recognized when I enter an email address for an unsubscribe form I have on one of my pages. Additionally, the confirmation message is also not showing up when the email address IS valid. Here is my code that I am using on a PHP page: PHP Code: function Unsubscribe() { var IsValid = document.getElementById("email").value; alert(IsValid.indexOf("@")); exit; if (document.getElementById("email").value.length == 0 || IsValid.indexOf("@")) == -1) { alert("Enter a valid email address"); exit; } else { <?php $handle = @fopen("../logs/unsubscribes.txt", "a"); fputs($handle, $_POST["email"] . " " . "\r\n"); fclose ($handle); ?> alert(IsValid &&" has been unsubscribed."); <?php if (! $_POST["email"]) { //DO NOTHING } else { header("Location: http://www.google.com/"); } ?> } } //--> </script> </head> <body> <form action="" method="post" name="frm" onsubmit="Unsubscribe()"> <center><br /> Enter Your Email Address:<br /> <input type="text" id="email" name="email" /> </center> <p> <label> <center><input type="submit" id="unsubscribe" value="Unsubscribe Me" /></center> </label> </p> </form> </body> </html> to those PHP experts, I am aware of the RegEx function for validation, but I don't understand it, which is why I don't use it (in case anyone points that out). The other thing that is problematic is that the PHP code is automatically using HEADER() regardless of "email"'s value Hi from Ireland! I recently signed up to Google Analytics and it began to block my flash content. I removed the tracker code (javascript) and deleted my account though my flash content is still blocked. Can someone help? I'll buy you a pint. regarding this script: http://cssphpmysql.com/dev/my-lifeline/ this is a jsportal 2.0 script written by Michel Hiemstra (http://michelhiemstra.nl); this script fires a few php/mysql UPDATE queries whenever a block is dragged/dropped from column to column, but fails to fire the queries if a block is dragged to a dif. position in the same column - i'm failry noob with jquery/javascript and after a lot of hunting and pecking i'm unable to find why. here's a bit of the code which i think is pertinent, though not sure. i would be very grateful if someone could offer a little help? Code: Portal.prototype = { initialize : function (settings, options, data) { // set options this.setOptions(options); // set blocks to their positions this.apply_settings(settings); // load data to blocks //this.loadData(data); // if editor is enabled we proceed if (!this.options.editorEnabled) return; // get all available columns var columns = $(this.options.portal).getElementsByClassName(this.options.column); // loop through columns array $A(columns).each(function(column) { // create sortable Sortable.create(column, { containment : $A(columns), constraint : this.options.constraint, ghosting : this.options.ghosting, tag : this.options.tag, only : this.options.block, dropOnEmpty : this.options.droponempty, handle : this.options.handle, hoverclass : this.options.hoverclass, scroll : this.options.scroll, onUpdate : function (container) { // if we dont have a save url we dont update if (!this.options.saveurl) return; // if we are in the same container we do nothing if (container.id == this.options.blocklist) return; // get blocks in this container var blocks = container.getElementsByClassName(this.options.block); // serialize all blocks in this container var postBody = container.id + ':'; postBody += $A(blocks).pluck('id').join(','); postBody = 'value=' + escape(postBody); // save it to the database new Ajax.Request(this.options.saveurl, { method: 'post', postBody: postBody, onComplete : function (t) { $('data').update(t.responseText + $('data').innerHTML); } }); }.bind(this) }); }.bind(this)); }, apply_settings : function (settings) { // apply settings to the array for (var container in settings) { settings[container].each(function (block) { if (!$(container)) { console.log('Block '+container+' not found') } else { $(container).appendChild($(block)); } }); } }, setOptions : function (options) { // set options this.options = { tag : 'div', editorEnabled : false, portal : 'portal', column : 'column', block : 'block', blocks : 'blocks', content : 'content', configElement : 'config', configSave : 'save-button', configCancel : 'cancel-button', configSaved : 'config-saved', handle : 'draghandle', hoverclass : 'target', scroll : window, remove : 'option-remove', config : 'option-edit', blocklist : 'portal-column-block-list', saveurl : true, constraint : false, ghosting : false, droponempty : true } Object.extend(this.options, options || {}); }, HTML: Code: <div id="columns"> <div id="column-1" class="column menu"></div> <div id="column-2" class="column blocks"></div> <div id="column-3" class="column sidebar"></div> <div class="portal-column" id="portal-column-block-list" style="display: none;"> // example block <div class="block" id="block-1"> <h1 class="draghandle"><span id="title-1" class="editText">1977</span></h1> <p><span id="evnt-1" class="editText">Berry Academy</span></p> </div> </div> </div> i've attached the dragdrop.js file as a txt file, also, as it's so large. I'll be very grateful for any offer of help. thanks loads. GN I want to have another go at Javascript. I have several books on the subject but I find that my eyesight is a major problem. Therefore I want to try an on-line solution, preferably free. I have Googled, but there are so many that I am almost dizzy with the choices. Perhaps someone could recommend one. Not too fussy visually. My knowledge is VERY basic. Frank Hello! I am trying to find a script that allows you to open multiple browser tabs and then close each of those tabs, either one by one or all at once. Does anyone know how to do this please? Thanks so much for your help. Does anyone know how to make URL links that use Javascript still work when users have Javascript disabled on their browser? The only reason I'm using JS on a URL is because my link opens a PDF file, and I'm forcing it not to cache so users have the latest version. I tried the <script><noscript> tags, but I'm not sure if I'm using it correctly, as my URL completely disappears. Below is my HTML/Javascript code: <p class="download"> <script type="text/javascript">document.write("<span style=\"text-decoration: underline;\"><a href=\"javascript:void(0);\" onclick=\"window.open( 'http://www.webchild.com.au/mediakit/Direct_Media_Kit_Web.pdf?nocache='+ Math.floor( Math.random()*11 ) );\" >The Child Magazines Media Kit</a></span> (PDF 1 MB) ");</script> <noscript><span style="text-decoration: underline;"><a href="http://www.webchild.com.au/mediakit/Direct_Media_Kit_Web.pdf" >The Child Magazines Media Kit</a></span> (PDF 1 MB)</noscript> </p> Thanks for any help, Michael Hi Guys, I am new at JavaScript and start to do some tutorials.What I am trying to do here is prompting user to input a name and if the name was valid the page(document) will display with all objects like the button.But if user enter a wrong name then the button will be disabled! I create the following code but it did not work <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>New Web Project</title> <script language="JavaScript" type=""> function changeColor(){ document.bgColor = "Gray"; } </script> </head> <body> <script language="JavaScript" type="text/javascript"> var person = ""; person = prompt('What is Your Name:'); if (person == "Foo") { document.write("<h1 />Welcome " + person); document.bgColor = "Yellow"; } else { document.write("<h1 />Access Denied!!!!"); document.bgColor = "Red"; document.getElementById("gree").disabled = true; } </script> <div> <p/><input id="gree" type="button" value="Gray " onClick="changeColor();"> </div> </body> </html> as you can see I used the: document.getElementById("gree").disabled = true; but it did not work , could you please give an idea how I can solve this problem? Thanks Hi, I have the following code snippet: test.html ====== <script language="javascript" type="text/javascript"> var testVariable = "test"; </script> <script language="javascript" type="text/javascript" src="test.js"> </script> test.js ===== var testVariable = window.top.testVariable; In firefox, I'm able to access testvariable defined within test.html in test.js. But in chrome, test.js couldnot get the window.top.testVariable field defined in test.html. Can any one please let me know how i can make it work in chrome?. Am i missing something here?. I want to insert this js snippet Code: function addText(smiley) { document.getElementById('message').value += " " + smiley + " "; document.getElementById('message').focus(); return false; } to a loaded iframe with name&id chtifrm. I can access it & change embed something in its html via using something like: Code: $(parent.chtifrm.document.body).append('<div id=\"smly\" style=\"cursor:pointer;float:left;top:200px;display:none;position:absolute;\"><\/div>'); .... Code: parent.chtifrm.document.getElementById('chatbox_option_disco').style.display == 'none' but how do I insert js in the head of loaded iframe? Hey, I've got to make the values of some textboxes change the co-ordinates of my sprite on a canvas and havent a clue on how to do it, Here is my form with the two textboxes and submit button: <form> x: <input type="text" name="x" /><br /> y: <input type="text" name:"y" /><br /> <input type="submit" value="Submit"/><br /> </form> And i need it so that they change the values of these: //this shows where my sprite will start on the canvas var block_x; var block_y; searched the internet for hours and cant really find anything i understand or works. any help is much appreciated Hi Guys I am trying to modify the functionality of my page. I want to be able to activate this piece of code using another javascript function. This is the code I want to activate: Code: <script type="text/javascript"><!-- $('#button-cart').bind('click', function() { $.ajax({ url: 'index.php?route=checkout/cart/update', type: 'post', data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea, .date_data input[type=\'text\']'), dataType: 'json', success: function(json) { $('.success, .warning, .attention, information, .error').remove(); if (json['error']) { if (json['error']['warning']) { $('#notification').html('<div class="warning" style="display: none;">' + json['error']['warning'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>'); $('.warning').fadeIn('slow'); } for (i in json['error']) { $('#option-' + i).after('<span class="error">' + json['error'][i] + '</span>'); } } if (json['success']) { $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>'); $('.success').fadeIn('slow'); $('#cart_total').html(json['total']); $('html, body').animate({ scrollTop: 0 }, 'slow'); } } }); }); //--></script> And this is how I want the format of the function to be: function testsession() { if there is a session called 'hiredate' { activate the script above } else { var el = document.getElementById("product_data"); } } I just dont know how to write this in javascript Could you help me if possible please I got an index.php Code: <html> <form action="bacakomik.php" method='post'> <select name="kodekomik"> <option value='../komik1/|23'>Judul Komik1</option> <option value="../komik2/|20">Judul Komik2</option> <option value="../komik3/|10">Juduk Komik3</option> <option value="../komik4/|20">Judul Komik4</option> </select> <input type="submit" /> </form> <?php echo ('<select>'); echo ('<option value= "'.$i.'">'.'Page '.$i.'</option>'); echo ('</select>'); ?> </html> As you can see, each of the option brings specific value "../komik1/|23" komik1 is a directory | is a delimiter 23 is the pages in one chapter and can be considered also as how many images are there on a specific directory This is my bacakomik.php Code: <?php $dirkomik = $_POST['kodekomik']; $exploded = explode("|", $dirkomik); echo ($exploded[0]); //picture directory echo ("<br>"); echo ($exploded[1]); //total page in the comic $pagecount = (int)$exploded[1]; //Take last posted value, process it right away echo ('<FORM name="guideform"> '); echo ('<select name="guidelinks">'); $i=1; do { echo ('<option value= "'.$i.'">'.'Page '.$i.'</option>'); $i= $i+1; }while($i <= $pagecount); //Printing option and select echo ("</select>"); ?> <input type="button" name="go" value="Go!" onClick="document.getElementById('im').src=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value+'.png';"> </FORM> <img src="img0.jpg" id="im"> With the current code on bacakomik.php, I only can change the img src of id "im" in the same directory only. What I want is that the Javascript could "add" the "$exploded[0]" variable so that the picture can be loaded from different directory. Anyone can do this? I believe that the fix should be somewhere on input tag inside OnClick, or do you know where? Anyway, I found this on the net http://p2p.wrox.com/php-faqs/11606-q...avascript.html Please help me to those who can... All -- I have a JavaScript config file called gameSetting.js which contains a bunch of variables which configures a particular game. I also have a shared JavaScript library which uses the variables in gameSetting.js, which I include like so: <script type="text/javascript" src="gameSetting.js" ></script> <script type="text/javascript" src="gameLibrary.js" ></script> In gameSetting.js I have: $(document).ready(function() { // call some functions / classes in gameLibrary.js } in Firefox, Safari, and Chrome, this works fine. However, in IE, when it's parsing gameSetting.js, it complains that the functions that live in gameLibrary.js aren't defined. When it gets to parsing gameLibrary.js, the variables in gameSetting.js are reported as not being defined. I've tried dynamically bootstrapping the gameLibrary file using this function in document.ready for dynamic load... $.getScript("gameLibrary.js"); However, the same problem still happens in IE, where when it parses the files individually it's not taking into context the file/variables that came before, so it's not an out of load order problem. My options a 1) collapsing all the functions in gameLibrary.js and variables in gameSetting.js into one file. However, this is not practical because this is dealing with literally hundreds of games, and having a gameLibrary.js in ONE location for ONE update is what makes most logical sense. 2) figure out a way to get this to work where variables in file1 are accessible to file2 in IE (as it seems they are in other browsers). jQuery seems to be able to have multiple plugins that all refer to the based jQuery-1.3.2.js, so I know there is a way to get this to work. Help appreciated. Nero I wrote a log function that took note of various function calls. Thinking that functions are first class objects, and objects have properties, I made the name of each logged function a property of that function, e.g., brightenInnerPara.name = "brightenInnerPara"; Every browser I tried (Firefox, MSIE, Opera, Chrome, Safari) accepted the assignment, no problem. In Firefox and MSIE, the result was what I wanted: brightenInnerPara.name == "brightenInnerPara" But in the others, the result was: brightenInnerPara.name == null Question 1. Which Javascript is correct here? I favor Firefox and MSIE, not merely because they were willing to give me what I wanted, but also because it makes no sense to accept an assignment statement without throwing an error and then give it a null semantics, like Chrome, Opera, and Safari did. I found a workaround, using assignments like this: brightenInnerPara.prototype.name = "brightenInnerPara"; To my surprise, that worked in every browser. But I don't know why. It seems that such assignments are enough to cause each function to have its own distinct prototype. Question 2. Just how inefficient is my workaround, and why does it work? I am trying to create a banner where an images changes when a user refresh a page. This is the js I am using: Quote: // JavaScript Document <!-- TWO STEPS TO INSTALL RANDOM IMAGE: /* 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> */ //<SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin // Set up the image files to be used. var theImages = new Array() // do not change this // To add more image files, continue with the // pattern below, adding to the array. theImages[0] = "C:\Documents and Settings\ahadali\Desktop\website\images\head_1.jpeg" theImages[1] = "C:\Documents and Settings\ahadali\Desktop\website\images\head_2.jpeg" theImages[2] = "C:\Documents and Settings\ahadali\Desktop\website\images\head_3.jpeg" //theImages[3] = '4.gif' // do not edit anything below this line var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+theImages[whichImage]+'">'); } // End --> This is what I have in <head> Quote: <script src="banner.js" type="text/javascript"></script> This is what I have in <body> Quote: <div> <script language="javascript">showImage();</script> </div> The banner is not working. All the help is appreciated. Thanks, Ali. Hey everyone, could anyone help me with this code please? Code: <script language ="javascript"> function ageCalculator() { var day = parseInt(document.forms[0].inputdate.value); var month = (parseInt(document.forms[0].inputmonth.value)-1); //this is because javascript thinks of january as month 0, so we need to minus the input month to work e.g december in javascript is month 11. var year = parseInt(document.forms[0].inputyear.value); var year; var yourage; var date = new Date(); thisday = now.getDate(); thismonth = (now.getMonth()); thisyear = (now.getFullYear()); { if ((thismonth > month) || (thismont == month & thisday>=year)) {yourage = year} else {yourage = year + 1} alert("As of, "+now+' \n'+", you a " +(thisyear - yourage) + " years old"); } } </script> <form><center> Enter your day of birth <input type="text" name="inputdate" size="2"><br/> Enter your birth Month(1-12)<input type="text" name="inputmonth" size="2"><br/> Enter your 4 digit birth year<input type="text" name="inputyear" size="4" ><br/> <input type="submit" value="submit" onClick="ageCalculator()"><input type="reset" value="reset"></center> </form> i'm pretty new to code and this has got me stumped any help would be appreciated, thanks Yesterday I downloaded DHTML news ticker wizard to build a javascript based news ticker wizard from he http://www.scriptocean.com/dticker.html I have installed the wizard and got html page and javascript code. But the thing is that, when I click on my links they doesn't work. Here is the JS code: Code: var text = new Array();var header = new Array();var linka = new Array();var targa = new Array();var paginationa = new Array();var divtext = new Array();var divh = new Array();var llll = new Array();var objs = new Array();var objsh = new Array();var thumbs = new Array();text[0] = "AAAAAAAAAAAAAAAAAAAAAAA";text[1] = "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB";text[2] = "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC";header[0] = "TITLE:";header[1] = "SATAURI:";header[2] = "SATAURI2:";linka[0] = "http:\/\/send.site.com";linka[1] = "http:\/\/send.site.com";linka[2] = "http:\/\/send.site.com";targa[0] = "_blank";targa[1] = "_blank";targa[2] = "_blank";paginationa[0] = "";paginationa[1] = "";paginationa[2] = ""; var spageObj=null;var LongObj=null;var lll=null;var ll=null;var nextimg=null;var jjjjjjjj=null;var previmg=null;var jjjjjj=null;var jjjjjjjjjjjjjj=null;var prevnextmosrc="";var llllll=null;var lllllll=1;var llllllllllllllll=0;var lllllllllllllllll=0;var llllllllllllllllll=0;uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var kalan=0;var vcurr=0;var vnext=0;var str2='';var mc=0;mc=text.length;stepc=parseInt(50*(15000/1000));dif=0.00;op=1.00;dif=(1.00/stepc);llllllll=0;lllllllll=0;llllllllll=0;lllllllllll=0;llllllllllll=0;lllllllllllll=0;llllllllllllll=0;lllllllllllllll=0;var jj=0;var jjj=0;var jjjj=0;var jjjjj=0;var jjjjjjjjjjjjj=null;var EffPart=1;var ClipY=0;var TopClip=0;var RightClip=0;var BottomClip=0;var LeftClip=0;var XStep=0;var YStep=0;var stepsay=0;var clipamount=10;var crrpos=0;var nxtpos=0;var fncname="";if((IEB==true)&&(scompat == "BackCompat" )){jj=605;jjj=24;}else{jj=605-2*(1);jjj=24-2*(1);}jjjj=605-2*(1);jjjjj=24-2*(1);if(0==0){if((IEB==true)&&(scompat == "BackCompat" )){llllllll=180;lllllllll=jjjjj;llllllllll=jjjj-180;}else{llllllll=180-0;lllllllll=jjjjj-4;llllllllll=jjjj-180-8-0;}llllllllllllll=0;lllllllllllllll=0;lllllllllllll=0;llllllllllll=180;lllllllllll=jjjjj;}else if(0==1){if((IEB==true)&&(scompat == "BackCompat" )){llllllll=jjjj;lllllllll=80;llllllllll=jjjj;lllllllllll=jjjjj-80;lllllllllllll=lllllllll;}else{llllllll=jjjj-0;lllllllll=80-4;llllllllll=jjjj-8-0;lllllllllll=jjjjj-80-4;lllllllllllll=80;}llllllllllllll=0;lllllllllllllll=0;llllllllllll=0;}else if(0==2){if((IEB==true)&&(scompat == "BackCompat" )){llllllll=180;lllllllll=jjjjj;llllllllll=jjjj-180;lllllllllll=jjjjj;}else{llllllll=180-0;lllllllll=jjjjj-4;llllllllll=jjjj-180-8-0;lllllllllll=jjjjj;}llllllllllllll=jjjj-180;lllllllllllllll=0;lllllllllllll=0;llllllllllll=0;}else if(0==3){if((IEB==true)&&(scompat == "BackCompat" )){llllllll=jjjj;lllllllll=80;llllllllll=jjjj-0;lllllllllll=jjjjj-80;}else{llllllll=jjjj-0;lllllllll=80-4;llllllllll=jjjj-8-0;lllllllllll=jjjjj-80-4;}llllllllllllll=0;lllllllllllllll=jjjjj-80;lllllllllllll=0;llllllllllll=0;}var tit_visb_str="inherit";if((llllllll==0)||(lllllllll==0)){tit_visb_str="hidden";}str2=''; str2=str2+'<div style="position:relative;width:'+jj+'px;height:'+jjj+'px;left:0px;top:0px;overflow:hidden;visibility:visible;'+'border-style:solid; border-width:1px; border-color:#666666;'+'">';if(1==1){str2=str2+'<div id="lngdv" style="position:absolute;width:'+(jjjj*mc)+'px;height:'+jjj+'px;left:0px;top:0px;overflow:hidden;visibility:visible;">';}if(1==3){str2=str2+'<div id="lngdv" style="position:absolute;width:'+jj+'px;height:'+(jjjjj*mc)+'px;left:0px;top:0px;overflow:hidden;visibility:visible;">';}for(i=0;i<mc;i++){divh[i]='<div id="dh'+i+'" style="position:absolute;width:'+llllllll+'px; height:'+lllllllll+'px;visibility:'+tit_visb_str+';'+'background-color:#BB0000;'+'COLOR:'+'#EEEEEE'+';padding-top:'+4+'px;padding-left:'+0+'px;'+'left:'+llllllllllllll+'px; top:'+lllllllllllllll+'px; FONT-FAMILY: '+'Verdana,Arial,Tahoma'+'; font-size:'+9+'pt; font-style: '+'normal'+'; font-weight: '+'bold'+'; TEXT-DECORATION: '+'none'+';margin:0px; overflow:hidden;text-align:'+'center'+';cursor: default;">';divtext[i]='<div id="d'+i+'" style="position:absolute;width:'+llllllllll+'px;height:'+lllllllllll+'px;left:'+llllllllllll+'px; top:'+lllllllllllll+'px;visibility:inherit;'+'background-color:#FFFFFF;'+'COLOR:'+'#000000'+'; '+'padding-top:'+4+'px;padding-left:'+8+'px;'+' padding-right:'+0+';FONT-FAMILY: '+'Verdana,Arial,Tahoma'+'; FONT-SIZE: '+'8'+'pt; font-style: '+'normal'+'; font-weight: '+'normal'+'; margin:0px; TEXT-DECORATION: '+'none'+'; overflow:hidden;vertical-align :text-top;text-align:'+'left'+';cursor: default;" onmouseover="mdivmo('+i+')" onmouseout ="restime('+i+')" onclick="butclick('+i+')">';str2=str2+'<div id="op'+i+'" style="position:absolute;overflow:hidden;visibility:hidden;left:0px;top:0px;width:'+jjjj+'px; height:'+jjjjj+'px;border-style:solid;border-width:0px;">';str2=str2+''+divh[i]+''+header[i]+'</div>'+divtext[i]+''+text[i]+'</div>';str2=str2+'</div>';}if((1==1)||(1==3)){str2=str2+'</div>';}str2=str2+'</div>';function runtransfunc(){if(1==1){llllllllllllllllllll();}if(1==2){llllllllllllllllllll2();}if(1==3){DoScroll();}if(1==4){llllllllllllllllllllll();}if(1==5){lllllllllllllllllllllll();}if(1==6){lllllllllllllllllllll();}if(1==7){llllllllllllllllllllllll();}if(1==8){lllllllllllllllllllllllll();}if(1==9){lllllllllllllllllll();}if(1==10){llllllllllllllllllllllllll();}}function frameover(){lllllllllllllllll=1;}function frameout(){lllllllllllllllll=0;}function mdivmo(gnum){llllllllllllllll=1;if(linka[gnum]!=''){if(!objs[gnum]){return;}objs[gnum].style.color='#AA0000';objs[gnum].style.cursor='pointer';window.status='Unregistered version. Visit:www.scriptocean.com';} }function restime(gnum2){llllllllllllllll=0;objs[gnum2].style.color='#000000';window.status='';}function butclick(gnum3){}function llllllllllllllllllllllllll(){if((lllllllllllllllll==1)&&(llllllllllllllllll==0)){llllll=setTimeout('llllllllllllllllllllllllll()',3000);return;}if(vnext!=vcurr){llll[vcurr].style.visibility="hidden";llll[vnext].style.visibility="visible";llll[vcurr].style.zIndex=0+2;llll[vnext].style.zIndex=0+3;}Sonraki();highlightthumb(vcurr);if(0==0){llllll=setTimeout('llllllllllllllllllllllllll()',3000);}}function zindx(){llll[vcurr].style.visibility="visible";llll[vnext].style.visibility="visible";llll[vcurr].style.zIndex=0+2;llll[vnext].style.zIndex=0+3;}function bulprevious(){vnext=vcurr-1;if(vnext<0){vnext=mc-1;}}function Sonraki(){vcurr=vnext;vnext=vnext+1;if(vnext>=mc){vnext=0;}}function devam(){if(0!=1){return;}if(0==1){return;}vnext=vcurr+1;if(vnext>=mc){vnext=0;}llllllllllllllllll=0;lllllll=1;clearTimeout(llllll);llllll=setTimeout(fncname+'()',3000);}function highlightthumb(hnum){updatepagenums(hnum);if(0!=1){return;}for(i=0;i<mc;i++){thumbs[i].style.backgroundColor='#000000'; thumbs[i].style.color='#000000';thumbs[i].style.borderColor='#000000';thumbs[i].style.backgroundImage="";}thumbs[hnum].style.backgroundColor='#000000'; thumbs[hnum].style.color='#999999';thumbs[hnum].style.borderColor='#000000';thumbs[hnum].style.backgroundImage="";}function FadeBitti(){lllllll=1;llllllllllllllllll=0;highlightthumb(vcurr);}function llllllllllllllllllll(){if((lllllllllllllllll==1)&&(lllllll==1)&&(llllllllllllllllll==0)){llllll=setTimeout('llllllllllllllllllll()',3000);return;}if(lllllll==1){crrpos=(jjjj*vcurr);nxtpos=(jjjj*vnext);kalan=(-1)*(jjjj*vcurr);LongObj.style.left=""+(kalan)+"px";zindx();}lllllll=0;kalan=kalan-Math.floor((nxtpos-crrpos)/(15000/1000));LongObj.style.left=""+kalan+"px";if( ((kalan<=((-1)*(jjjj*vnext)))&&(nxtpos>=crrpos)) || ((kalan>=((-1)*(jjjj*vnext)))&&(nxtpos<crrpos)) ){ Sonraki();kalan=(-1)*(jjjj*vcurr);LongObj.style.left=""+(kalan)+"px"; zindx(); if(0==0){llllll=setTimeout('llllllllllllllllllll()',3000);}lllllll=1;llllllllllllllllll=0;highlightthumb(vcurr);}else{llllll=setTimeout('llllllllllllllllllll()',40); }}function dofirst(){var i=0;LongObj=document.getElementById("lngdv");for(i=0;i<mc;i++){objs[i]=document.getElementById("d"+i);objsh[i]=document.getElementById("dh"+i);llll[i]=document.getElementById("op"+i);if((1!=1)&&(1!=3)){llll[i].style.left="0px";llll[i].style.top="0px";}else{if(1==1){llll[i].style.left=""+(i*jjjj)+"px";llll[i].style.top="0px";}if(1==3){llll[i].style.left="0px";llll[i].style.top=""+(i*jjjjj)+"px";}}if((1==1)||(1==3)){llll[i].style.visibility="visible";}else{llll[i].style.visibility="hidden";}}createbgrounds();lllllll=1;llll[0].style.visibility="visible";highlightthumb(0);op=0.00;if(1==1){fncname="llllllllllllllllllll";}if(1==2){fncname="llllllllllllllllllll2";}if(1==3){fncname="DoScroll";}if(1==4){fncname="llllllllllllllllllllll";}if(1==5){fncname="lllllllllllllllllllllll";}if(1==6){fncname="lllllllllllllllllllll";}if(1==7){fncname="llllllllllllllllllllllll";}if(1==8){fncname="lllllllllllllllllllllllll";}if(1==9){fncname="lllllllllllllllllll";}if(1==10){fncname="llllllllllllllllllllllllll";}if(0==0){llllll=setTimeout(fncname+'()',3000);}updatepagenums(vcurr);}function createlllll(){}function updatepagenums(gcur){if(0!=1){return;}jjjjjjjjjjjjjj.innerHTML=""+""+(gcur+1)+"of"+mc+"";}function createpagenums(){if(0!=1){return;}}function createbgrounds(){if(0==0){spageObj.style.backgroundColor='#FFFFFF';}if(0==1){spageObj.style.backgroundImage="";spageObj.style.backgroundRepeat="no-repeat";spageObj.style.backgroundPosition=""+0+"px "+0+"px";}for(i=0;i<mc;i++){if(0==1){objsh[i].style.backgroundImage="";objsh[i].style.backgroundRepeat="no-repeat";objsh[i].style.backgroundPosition=""+0+"px "+0+"px";}if(0==1){objs[i].style.backgroundImage="";objs[i].style.backgroundRepeat="no-repeat";objs[i].style.backgroundPosition=""+0+"px "+0+"px";}}}function initte(){spageObj=document.getElementById('spage');if(!spageObj){setTimeout('initte()',500);return;}spageObj.innerHTML=str2;if(0==1){createpagenums();}if(0==1){createlllll();}if(0==1){createthumbs();}if((0==1)||(0==1)){createnextprev();}if(1==6){createfadediv();}spageObj.onmouseover = frameover;spageObj.onmouseout = frameout;vnext=1;if(vnext>=mc){vnext=0;}spageObj.style.left="0px";spageObj.style.top="0px"; setTimeout('dofirst()',100); }setTimeout('initte()',200); And html code is he Code: <html> <head><title></title> </head> <body topmargin=0 leftmargin=0 rightmargin=0> <center> <div id="spage" style="position:absolute;left:0px;top:0px;margin:0px; width:605px; height:24px; overflow:hidden;"></div><script language="javascript" charset="utf-8" src="template1_ticker.js"></script> </center> </body></html> Could someone help me to solve this please? I would like to put an ad delay onto a webpage. No content shows up (complete white backgorund) until 30 seconds after viewing the ad. The ad would disappear and the content of the page would load up.
|