View Full Version : Opening Links, Always Use The Same Page
hi, im currently redesignin my website, and i was wondering if its possible to always have the links on my page use the same new page, not keep opening new ones, coz i was gonna put a set of pictures up, and i wanted them to click open in a new page, but if u click the next picture, it would use the same page the other picture opened up in,
hope u understand, thanks
[B][O][T]
09-25-2003, 02:46 PM
Why not use frames?
BOT
i nam going to be using framses.
if u check out http://www.freewebs.com/monkey_media/pictures.htm
the top bit will be a different frame, and then i want the pics to open in a new window, so as not to lose the current window.
lol :lol: Is that your monkey? Cute little fellow. :P
But like [B][O][T] said you may want to consider using frames.
I think it looks pretty good though.............monkey and all. :P
SniperInTheShadows
09-25-2003, 05:22 PM
If you mean that you want to enable people to be able to click on a picture and it to open in a seperate window, and from then on when they click on a different picture it'll open in that seperate window then this should work...
http://www.freewebs.com/monkey_media/monkey_0001.jpg (http://www.freewebs.com/monkey_media/monkey_0001.jpg)
http://www.freewebs.com/monkey_media/monkey_0002.jpg (http://www.freewebs.com/monkey_media/monkey_0002.jpg)
What this does is tell's the browser to open a new window called "_picture" and then that window will be used (providing you specify a target (target="_picture") for each picture) when another picture is clicked :-)
Sniper.
thanks sniper, thats what i was looking for, i thought that woulda worked, but it sounded to simple, so its just the same code for opening in a new page, but i just call it a name instead of blank
Hellie
09-25-2003, 05:59 PM
Hey Livy where are the video´s?
[B][O][T]
09-25-2003, 06:00 PM
Livy check this (http://www.home.no/brand/livy.html) link. (Click the image)
Paste this in <HEAD> </HEAD>
<script>
PositionX = 100;
PositionY = 100;
defaultWidth = 500;
defaultHeight = 500;
var AutoClose = true;
// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();
}}
</script>
And this in <BODY> </BODY>
<A HREF="javascript:popImage('wiggum7.gif','BOT')"style="cursor:crosshair"><IMG SRC="wiggum7.gif" WIDTH="400" HEIGHT="352" BORDER=0 ALT=""></A>
I think You understand what to change.
BOT
Originally posted by Hellie@25 September 2003 - 17:59
Hey Livy where are the video´s?
i cant upload them yet, you cant upload things bigger than 750k in ur 1st week, if u click the link in my sig they are on my curretn site,
[B][O][T]
09-25-2003, 06:03 PM
I want a monkey too :) :D
BOT
www.gadgetshop.com may be sold out though, mines was £25 pound, and iw as in the actual gadgetshop last week and i was tempted to buy another one for £20 it had a different tshirt, it said bad in red writing.
[B][O][T]
09-25-2003, 06:07 PM
Livy did You check http://www.home.no/brand/livy.html ?
BOT
yeah, looks a bit more complicated, the way sniper posted will probably do, ill give it a go, im just trying to remove all the crap from the freewebs templates, and isolate the top bit to make it into frames
[B][O][T]
09-25-2003, 06:19 PM
Alrighty, I'll delete livy.html soon just so You know :)
BOT
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.