![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| JavaScript JavaScript are you needing help with functions in your script, free help is offered here for all JavaScript problems so if you have an JavaScript error in your code just ask. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I can get the first to work - but I need to combine the first with a second script to make the widow that pops up chromeless, I found a chromeless window script which is also listed below, I have a site with 3400 links, and editing all of the links would be nearly impossible, if I can combine these, then it would save me so much trouble the second script also has aditional files (http://www.dynamicdrive.com/dynamici...chromeless.htm) if anyone can help, it would be greatly appreciated. Thanks, Don FIRST SCRIPT ------------------------------------------------------------------------------------------------------------------------------------------------------------------- //Open offsite links in new window option- By Jessica Hammer //Heavily modified by Dynamic Drive //Visit http://www.dynamicdrive.com for this script //1)Enter domains to be EXCLUDED from opening in new window: var excludedomains=["luxury-millionaire-experiences.com", "lmeonline.net", "luxurymillionaireexperiences.com"] //2)Automatically open offsite links in new window? (1=yes, 0 will render a checkbox for manual selection) var auto=1 var excludedomains=excludedomains.join("|") rexcludedomains=new RegExp(excludedomains, "i") if (!auto) document.write('<form name="targetmain"><input type="checkbox" name="targetnew" checked onClick="dynamiclink()">Open off-site links in new window</form>') function dynamiclink(){ if (auto||(!auto&&document.targetmain.targetnew.check ed)){ for (i=0; i<=(document.links.length-1); i++) { if (document.links[i].hostname.search(rexcludedomains)==-1&&document.links[i].href.indexOf("http:")!=-1) document.links[i].target="_blank" } } else for (i=0; i<=(document.links.length-1); i++) { if (document.links[i].hostname.indexOf(mydomain)==-1) document.links[i].target="" } } if (auto) window.onload=dynamiclink // --> ------------------------------------------------------------------------------------------------------------------------------------------------------------------- SECOND SCRIPT ------------------------------------------------------------------------------------------------------------------------------------------------------------------- <script language="javascript" type="text/javascript" src="chromeless_35.js"></script> <script language="javascript"> /* Chromeless Window (v3.5)- By Gabriel Suchowolski (this credit MUST stay intact) Author site at http://www.microbians.com Visit http://www.dynamicdrive.com for this script */ //For paramater explanations, see accompanying faq.htm file function openIT(u,W,H,X,Y,n,b,x,m,r) { var cU ='close.gif' //gif for close on normal state. var cO ='close.gif' //gif for close on mouseover. var cL ='clock.gif' //gif for loading indicator. var mU ='minimize.gif' //gif for minimize to taskbar on normal state. var mO ='minimize.gif' //gif for minimize to taskbar on mouseover. var xU ='max.gif' //gif for maximize normal state. var xO ='max.gif' //gif for maximize on mouseover. var rU ='restore.gif' //gif for minimize on normal state. var rO ='restore.gif' //gif for minimize on mouseover. var tH ='<font face=verdana size=2>Chromeless Window</font>' //title for the title bar in html format. var tW ='Chromeless Window' //title for the task bar of Windows. var wB ='#D5D5FF' //Border color. var wBs ='#D5D5FF' //Border color on window drag. var wBG ='#D5D5FF' //Background of the title bar. var wBGs='#D5D5FF' //Background of the title bar on window drag. var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=1,resizable=0' //Html parameters for Netscape. var fSO ='scrolling=auto noresize' //Html parameters for main content frame. var brd =b||5; //Extra border size. var max =x||false; //Maxzimize option (true|false). var min =m||false; //Minimize to taskbar option (true|false). var res =r||false; //Resizable window (true|false). var tsz =20; //Height of title bar. return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO, tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz) } </script> -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: help, scripts, two |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for a few scripts... | Durham Writer | PHP | 6 | 07-01-2007 4:32 PM |
| Droplets & Scripts | Ed Landau | Graphics in general | 1 | 05-31-2007 5:42 PM |
| Scripts for CorelPhotoPaint | Hunter Elliott | Graphics in general | 3 | 05-28-2007 6:46 PM |
| Where to find PHP scripts? | Henk oegema | PHP | 2 | 05-20-2007 5:33 PM |
| Directory Scripts | allready | Directories | 5 | 08-02-2006 12:51 AM |
| Featured Websites | ||||
|