• ARCHIVES 
  • » hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

Pages: 123

hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

mhedge
» FTalkGeek
FTalk Level: zero
1027
0
1969-12-31

hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.php?code=alert]=D click here[/url] first you need to put this at ur css file: you can edit if you wan't :) [quote].okButton { background-color: #222222; color: #ffffff; font-size: 11px; font-family: microsoft sans serif; width: 70px; height: 20px; border: #333333 1px solid; } .alertTitle { background-color: #1f1f1f; color: #ffffff; font-size: 11px; font-family: microsoft sans serif; font-weight: bold; height: 20px; padding-left:5px; border: #444444 1px solid; } .alertMessage { color: #ffffff; font-size: 11px; font-family: microsoft sans serif; font-weight: normal; } #alertLayer{ cursor: default; filter: alpha(opacity=90); background-color: #222222; position: absolute; top: 150px !important; left: 200px; width: 100px; height: 50px; visibility:hidden; z-index: 999; text-align: center; border: #666666 1px solid; }[/quote] then put this at ur js file [quote]/* // Custom Alert Box // By Mhedge Catalan */ document.write("<div id=\"alertLayer\" class=alertBoxStyle>..</div>"); function BrowserCheck() { var b = navigator.appName; if (b == "Netscape") this.b = "NS"; else if (b == "Microsoft Internet Explorer") this.b = "IE"; else this.b = b; this.v = parseInt(navigator.appVersion); this.NS = (this.b == "NS" && this.v>=4); this.NS4 = (this.b == "NS" && this.v == 4); this.NS5 = (this.b == "NS" && this.v == 5); this.IE = (this.b == "IE" && this.v>=4); this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0); this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0); if (this.IE5 || this.NS5) this.VER5 = true; if (this.IE4 || this.NS4) this.VER4 = true; this.OLD = (! this.VER5 && ! this.VER4) ? true : false; this.min = (this.NS||this.IE); } is = new BrowserCheck(); alertBox = (is.VER5) ? document.getElementById("alertLayer").style : (is.NS) ? document.layers["alertLayer"] : document.all["alertLayer"].style; function hideAlert(){ alertBox.visibility = "hidden";} function makeAlert(aTitle,aMessage){ document.all.alertLayer.innerHTML = "<table border=0 width=100% height=100%>" + "<tr height=5><td colspan=4 class=alertTitle>" + " " + aTitle + "</td></tr>" + "<tr height=5><td width=5></td></tr>" + "<tr><td width=5></td><td width=20 align=left><img src='http://s4.tinypic.com/1sgwmc_th.jpg'></td><td align=left class=alertMessage>" + aMessage + "<BR></td><td width=5></td></tr>" + "<tr height=5><td width=5></td></tr>" + "<tr><td width=5></td><td colspan=2 align=center><input type=button value='OK' onClick='hideAlert()' class=okButton><BR></td><td width=5></td></tr>" + "<tr height=5><td width=5></td></tr></table>"; thisText = aMessage.length; if (aTitle.length > aMessage.length){ thisText = aTitle.length; } aWidth = (thisText * 5) + 80; aHeight = 100; if (aWidth < 150){ aWidth = 200; } if (aWidth > 350){ aWidth = 350; } if (thisText > 60){ aHeight = 110; } if (thisText > 120){ aHeight = 130; } if (thisText > 180){ aHeight = 150; } if (thisText > 240){ aHeight = 170; } if (thisText > 300){ aHeight = 190; } if (thisText > 360){ aHeight = 210; } if (thisText > 420){ aHeight = 230; } if (thisText > 490){ aHeight = 250; } if (thisText > 550){ aHeight = 270; } if (thisText > 610){ aHeight = 290; } alertBox.width = aWidth; alertBox.height = aHeight; alertBox.left = (document.body.clientWidth - aWidth)/2; alertBox.top = (document.body.clientHeight - aHeight)/2; alertBox.visibility = "visible"; }[/quote] now to make the alerts just add this to ur codes : put it at last part or inside onload handler [quote]makeAlert('[b]YOUR TITLE[/b]','[b]YOUR MESSAGE HERE[/b]');[/quote] to add more [quote]makeAlert('[b]YOUR TITLE[/b]','[b]YOUR MESSAGE HERE[/b]'); makeAlert('[b]YOUR TITLE[/b]','[b]YOUR MESSAGE HERE[/b]'); makeAlert('[b]YOUR TITLE[/b]','[b]YOUR MESSAGE HERE[/b]');[/quote]

Last edited by mhedge (2008-11-30 04:05:02)

idiot_goblinz
» FTalkAddict
FTalk Level: zero
558
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

cool tricks =):thumbsup: thanx for sharing :D
Dynasty-tweaker
» FTalkWhiz
FTalk Level: zero
2528
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

cool dude thx for sharing gonna try this
---xXirukiTepe---
» SuperFTalker
FTalk Level: zero
8896
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[b]Can u make a preview... applying it in friendster ... itself.[/b] :|
MiSS.GRACEo6
» FTalkManiac
FTalk Level: zero
768
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

:question: can i put this in FS?
mhedge
» FTalkGeek
FTalk Level: zero
1027
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[quote=---xXirukiTepe---]Can u make a preview... applying it in friendster ... itself. :|[/quote] ok wait [quote=MiSS.GRACEo6]:question: can i put this in FS?[/quote] of course LOL .. all codes are for FS :retard:
kacang`z
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ My Threads!
2662
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

are you can give me preview in friendster ..... thanks for sharing..
---xXirukiTepe---
» SuperFTalker
FTalk Level: zero
8896
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[b]I think ds is a part of a pop up javascript ..coding... >> indeed, it was hard to customize the style of the alert box in all browsers. We can nvr change if its really a part of the specific browser. I guess at 1 point, we wud lyk 2 see d... prev in FS. We''ll wait for d update[/b] :D
rebora2007
» FTalkAddict
FTalk Level: zero
300
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

nice 1 tanks for shraing :thumbsup: Do you have it in good bye allert to ? :D

Last edited by rebora2007 (2008-11-30 23:05:58)

-retired-
» FTalker
FTalk Level: zero
271
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

wow! kewl! ur just playing with the codes? HAHAH.
jesrhel
» FTalkAddict
FTalk Level: zero
438
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

.

Last edited by jesrhel (2011-05-16 09:31:16)

jddrulez
» FTalker
FTalk Level: zero
285
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

very nyc... i like dis one!! thnx much.... kip it up buddy....
paopao29
» n00b
FTalk Level: zero
94
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

what if you have already a no right click code what will happen if i use this code?
mhedge
» FTalkGeek
FTalk Level: zero
1027
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[quote=paopao29]what if you have already a no right click code what will happen if i use this code?[/quote] the alert box of no right click is not customized ..
bobcbar
» FTalkElite
FTalk Level: zero
5223
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

Really nice custom alert box..thanks for sharing the codes =)
LOUiSSE
» FTalker
FTalk Level: zero
232
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

tnx for sharing! gonna try it :D
chipster489
» FTalkWorm
FTalk Level: zero
16296
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[b]Nice, dat's cool. :) [/b]
pinkchiq
» n00b
FTalk Level: zero
1
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

hello.. i just want to ask if i need to put it on my extensions or not? sorry im not so familiar with the codes, new here
ericajoyce2003
» FTalker
FTalk Level: zero
241
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

what if we already have the CSS alert box? :P
bobcbar
» FTalkElite
FTalk Level: zero
5223
0
1969-12-31

Re: hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

[quote=pinkchiq]hello.. i just want to ask if i need to put it on my extensions or not? sorry im not so familiar with the codes, new here[/quote] Yes apply the css code in ur external css file and the js codes in ur external js file. =) [quote=ericajoyce2003]what if we already have the CSS alert box?[/quote] Will just add another alert box but this will be js type alert the css codes only change the colors, etc...

Last edited by bobcbar (2008-12-12 22:46:44)

  • ARCHIVES 
  • » hi there .. i just played a code then i got this one .. now you can make your own alert box .. put your own title and change it's colors .. preview? :arrow: [url=http://mhedge.web44.net/notes/preview.

Pages: 123

Board footer

© 2024 F Talk

Current time is 08:37

[ 10 queries - 0.024 second ]
Privacy Policy