Jump to content

robert.access

Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

robert.access's Achievements

Member

Member (2/5)

0

Reputation

  1. hello everyone, I have the following script that replace the "bad" words from input text, but it's not working in both textarea and only in one of them. What can be the problem? Thank you very much! <html> <head> <script type="text/javascript"> var bannedWords = ["good","hunt","luck","mother humper","lock ducker", "whore","witch","thit","xss","xsshole","faggot", "tigger","kiss","ahole","hole"]; function validate(nForm){ var nMessage = nForm["message", "message2"]; nMessage.value = nMessage.value.replace(/\<\/?.[^\>]*\>/g, "").replace(/[^a-z.?\s\d]/gi, " "); for (i=0; i<bannedWords.length; i++) { var nBanned = new RegExp("[^a-z\s]+"+bannedWords[i]+"[^a-z.?]*","gi"); nMessage.value = nMessage.value.replace(nBanned, " *** "); } nMessage.value = nMessage.value.replace(/\s{2,}/g, " *** "); nMessage.value = nMessage.value.replace(/([a-z]+)\s([.?])/g, "$1$2"); alert('Thank you'); return true; } function init(){ var nForm = document.forms[0]; nForm.onsubmit = function() { return validate(this); } } navigator.appName == "Microsoft Internet Explorer" ? attachEvent('onload', init, false) : addEventListener('load', init, false); </script> </head> <body> <form action="" method="post"> <textarea name="message"></textarea> <textarea name="message2"></textarea> <input type="submit" name="submit" value="Submit"> </form> </body> </html>
  2. Hi, please help me! I have the following js script that expand a search box with the names from a database, and I want to limit to let's say 20 chars. For example if I search for "audi" it display in a div "audi a6 model year 2006, fuel petrol" I want to display only "audi a6 model ye..." Would that be possible? Thank you in advance for any help!
  3. Hi! Does anyone know how to disable auto link posting in innovaeditor ?? For example when I enter www.something it will make it a link, How can I disable this, to be able only to modify text size color etc, but not html entering. Thank you in advance, really appreciate any help.
  4. i think that I have to modify something here to block auto insert of link any advice please!!!
  5. my code resize in editor.js it's something like function convertBorderWidth(width){ return eval(width.substr(0,width.length-2)); }
  6. hi all, I really apreciate if anyone can tell me what function I have to look for in a js file, (to delete it) to remove the automaticaly posted link in a text box. for example when I enter www.something.com and I press space bar the textarea will make it like <a href="http://www.something.com ">www.something.com </a> ... this is in java , so please any ideeas what to looking for???? and please don't give me "answers" learn java,,, I try and found nothing, please give me your ideea for what to looking for, to remove... thank you very much! really apreciate (p.s. dont have money to hire a freelancer, that's why I;m here) thx!!!!
  7. can't get it to work... any help? if I knew to do that i wont ask here (( please.
  8. thank you! i'll try to find it out
  9. hi! please help me with "printing" date in sent email copyright. Like copy 2004 - "current year" Thank you! the code that site use to send email registration it's:
  10. the bar it's appear from top and it's not fixed on top, I mean it's sliding down in a second. It's not fixed (what I want). and I just want an opinion or a simple code, mabe an ideea to change if(verticalpos=="fromtop") I dont think that it's so hard, but I really dont know java... MrAdam, thanks for the freelance suggestion...
  11. Hi all! I have the following script: var persistclose=1 var startX=3 var startY=0 var verticalpos="fromtop" function iecompattest() {return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body} function get_cookie(Name) {var search=Name+"=" var returnvalue="";if(document.cookie.length>0) {offset=document.cookie.indexOf(search) if(offset!=-1) {offset+=search.length end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;returnvalue=unescape(document.cookie.substring(offset,end))}} return returnvalue;} function closebar() {if(persistclose) document.cookie="remainclosed=1" document.getElementById("topbar").style.visibility="hidden"} function staticbar() {barheight=document.getElementById("topbar").offsetHeight var ns=(navigator.appName.indexOf("Netscape")!=-1)||window.opera;var d=document;function ml(id) {var el=d.getElementById(id);if(!persistclose||persistclose&&get_cookie("remainclosed")=="") el.style.visibility="visible" if(d.layers)el.style=el;el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};el.x=startX;if(verticalpos=="fromtop") el.y=startY;else {el.y=ns?pageYOffset+innerHeight:iecompattest().scrollTop+iecompattest().clientHeight;el.y-=startY;} return el;} window.stayTopLeft=function() {if(verticalpos=="fromtop") {var pY=ns?pageYOffset:iecompattest().scrollTop;ftlObj.y+=(pY+startY-ftlObj.y)/8;} else {var pY=ns?pageYOffset+innerHeight-barheight:iecompattest().scrollTop+iecompattest().clientHeight-barheight;ftlObj.y+=(pY-startY-ftlObj.y)/8;} ftlObj.sP(ftlObj.x,ftlObj.y);setTimeout("stayTopLeft()",10);} ftlObj=ml("topbar");stayTopLeft();} if(window.addEventListener) window.addEventListener("load",staticbar,false) else if(window.attachEvent) window.attachEvent("onload",staticbar) else if(document.getElementById) window.onload=staticbar This script make a popup and I have modified css to look like an information bar that resize on top. The problem is that the bar it's comming from top in a sec and when i move the page down and after I move fast up the bar is "coming" to top. I want to be fixed on top like internet infobar and to stay on top of othe items and in top of the webpage when I move page up and down. Thanks alot in advance for any help and suggestions!
  12. thanks for readind . looks like z-index:2; fix the problem with showing on top, but same problem with 3px bug in ie ( any advice?
  13. Hi to all! I have a problem with the following code: #topbar{ TOP: 0px; PADDING-BOTTOM: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; VISIBILITY: hidden; BORDER-TOP: black 0px; BORDER-BOTTOM: black 1px solid; BORDER-RIGHT: black 0px; BORDER-LEFT: black 0px; WIDTH: 100%; FONT-FAMILY: Tahoma; FONT-SIZE: 9px; POSITION: absolute !important; BACKGROUND-COLOR: #FEFEDE; } my toolbar (like the googletranslate, or "you need to install the following...") that appear on top of the website and stay there when you move the page, have a 2 - 3 pixels empty space (it's positioned lower with 3px) and it's not on top of all items in site like images, swf, etc. Can anyone can give me an ideea how to fix it, please? Thank you!
  14. the first function it's for upload images without page refresh. If I upload image and click next it's open in new window, but if i hit refresh before next button, it's working normally :confused:
  15. I don't know what to show more??? My buttons (prev and next ) it's called from <?=nav_btns_position();?> But I see that this java it's the problem. Please tell me more what should i send to you< I really need to fix this up. Thank you both. Really apreciate your answers
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.