Computer Webmaster Gaming Console Graphics Forum

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.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > JavaScript
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

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.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 4:38 PM   #1
Don Kelly
 
Don Kelly's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default need help with two scripts

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>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




All times are GMT +1. The time now is 6:34 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98