473,774 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't figure out how to open links in SAME window

1 New Member
Help greatly appreciated!
My links open in a new window, but I need them to open in the same window.
I'm not sure where to put the ,"self" part of the code when dealing with an Array.
Any help is so appreciated. I am stuck now and am past due.

Here is my code-

stop();
var arrLinks:Array = new Array();
arrLinks[1] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027141/category.cgi';
arrLinks[2] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027139/Harlequin-Historical.html ';
arrLinks[3] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027129/Silhouette-Desire.html';
arrLinks[4] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027136/Silhouette-Nocturne.html';
arrLinks[5] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027121/Harlequin-Intrigue.html';
arrLinks[6] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027123/Harlequin-Blaze.html';
//
var pc = 0;
this.onEnterFra me = function() {
pc = Math.floor((_ro ot.getBytesLoad ed()/_root.getBytesT otal())*100);
if (pc == 100 && !isNAN(pc)) {
delete this.onEnterFra me;
_root.play();
}
};


The project this code refers to is here-
http://www.respond1.com/harlequin/sl...over_all2.html

Thank you so much in advance.
Dave
Jan 31 '08 #1
1 1850
nomad
664 Recognized Expert Contributor
Help greatly appreciated!
My links open in a new window, but I need them to open in the same window.
I'm not sure where to put the ,"self" part of the code when dealing with an Array.
Any help is so appreciated. I am stuck now and am past due.

Here is my code-

stop();
var arrLinks:Array = new Array();
arrLinks[1] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027141/category.cgi';
arrLinks[2] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027139/Harlequin-Historical.html ';
arrLinks[3] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027129/Silhouette-Desire.html';
arrLinks[4] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027136/Silhouette-Nocturne.html';
arrLinks[5] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027121/Harlequin-Intrigue.html';
arrLinks[6] = 'http://www.diesel-ebooks.com/cgi-bin/category/FIC027123/Harlequin-Blaze.html';
//
var pc = 0;
this.onEnterFra me = function() {
pc = Math.floor((_ro ot.getBytesLoad ed()/_root.getBytesT otal())*100);
if (pc == 100 && !isNAN(pc)) {
delete this.onEnterFra me;
_root.play();
}
};


The project this code refers to is here-
http://www.respond1.com/harlequin/sl...over_all2.html

Thank you so much in advance.
Dave
Dave:
Very interesting ideal. I would try putting the self right after each html.
or maybe make another Function that is called some how

nomad
Feb 1 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
7031
by: Anna | last post by:
Hi all. I have a (hopefully) pretty simple question. I open a link in a new window: <a href="http://www.somewhere.com/some.hml" onclick="window.open(url,null,'resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=600,height=400');">Link</a> The page I am opening is not mine. I want to edit the content of the page I am opening, adding text "This page is opened in a new window" as a first thing...
7
3505
by: alberta soranzo | last post by:
i'm trying to send a mass-email using microsoft's list builder (http://www.bcentral.com/products/lb/default.asp). my html file is clean and the javascript links work fine in all browsers. when the emails are received though, clicking on the links opens two browser windos: one --on top -- displays the content correctly. the other one - always on the bottom -- displays "". is there something i should change in the links to make them work in...
18
9467
by: Wladimir Borsov | last post by:
Inside a html page (more precicesly inside a JSP page) I defined a button. When the user clicks this button a second browser window should pop up und load the passed URL. I coded <img src="mybutton.gif" onclick='window.open("http://mydomain.com", "Mytitle);'> However when I click on the button (under Win2000 + IE5.5) no window pops up. Why?
29
5028
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
0
1119
by: =?Utf-8?B?cGVsbGk=?= | last post by:
I create a bookmark of a folder in Windows Explorer and save in my Links folder. When I click the link from the link bar, it is opened in a new window. When I open the link from Favorites->Link->, it opens in the same Explorer window. The latter is my desired behavior for the former action. How do I make this so? I have veirified T00ls -Folder Options -Browse Folders is set to open in same window.
7
17902
by: chambers.anya | last post by:
Hi, I've just been scouring the web trying to find an answer for how to do this but so far without any success. Basically I want some of the links in my page to open in new tabs (I'm using Firefox) or windows if the user has their options configured that way. And I want my page to remain intact as it involves some AJAX and takes a while to load. But ...and this seems to be a big "but"... I don't want the focus to
1
1375
by: helpnuts | last post by:
I have a form which has links with query string which leads to a new form. Right now my code opens the link in the same browser window. But i am unable to open it in new window. How do i open it???? Please help Regards NUTS
6
1345
by: WillByteAccess | last post by:
I a webpage on which most links open in the same window, but one will opens in a new window. If I click the link which opens in a new window ALL other links from the original page will then open in a new window. This only happens once the link that opens in a new window is clicked, if the page loads and the user only clicks on links which open in the same page then it all works fine. Any suggestions? Cheers, Will
3
2608
tusovka
by: tusovka | last post by:
I have a php function that creates different links to a particular column in my <table>. The links work great, one problem though. Say your on the main page and you click one of the links that were generated. First, a new window opens (_blank) and address of the link is executed. So for the first click everything is great. But if you go back to the main page and clink on a different link, it will just load a new page in the child window. ...
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.