Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 2nd, 2005, 03:07 AM
MIO MIO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Downey, CA
Posts: 12 MIO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can someone please help with this.

I want to know if there is any possible way that when the link is selected/clicked it would open in a blank window and not in the window it's in.


__________________________________________________ ______________
Script


<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Robert Bui (astrogate@hotmail.com) -->
<!-- Web Site: http://astrogate.virtualave.net -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var interval = 2.5; // delay between rotating images (in seconds)
var random_display = 1; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
var link_index = 0;
image_list = new Array();
link_list = new Array();
image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/01.jpg");
image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/02.jpg");
image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/03.jpg");
image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/04.jpg");

link_list[link_index++] = "http://www.something.com";
link_list[link_index++] = "http://www.somethingelse.com";
link_list[link_index++] = "http://www.anotherthing.com";
link_list[link_index++] = "http://www.ohlook, number 4.com";

var number_of_image = image_list.length;
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
if (random_display) {
image_index = generate(0, number_of_image-1);
}
else {
image_index = (image_index+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list[image_index]);
return(new_image);
}
function rotateImage(place,anchor) {
var new_image = getNextImage();
document[place].src = new_image;
document.getElementById("rLink").href = link_list[image_index];
var recur_call = "rotateImage('"+place+"')";
setTimeout(recur_call, interval);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="rotateImage('rImage','rLink')">

<!-- STEP THREE: Copy this code into the BODY of your HTML document -->

<center>
<a id="rLink" href="">
<img name="rImage" src="http://javascript.internet.com/img/image-cycler/01.jpg" width=120 height=90>
</a>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 2.29 KB -->

Reply With Quote
  #2  
Old February 2nd, 2005, 03:26 AM
rrector rrector is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Olney, IL
Posts: 9 rrector User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rrector Send a message via Yahoo to rrector
RE: Can someone please help with this.

instert target="_blank" into your <a> tag.
This should be in Client Side Things, though.

Reply With Quote
  #3  
Old February 2nd, 2005, 03:44 AM
MIO MIO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Downey, CA
Posts: 12 MIO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Can someone please help with this.

Where is the client side?

But if you can help me a little further I would greatly apreciate it.

I dont knowwhere to insert it. Can you tell me where the <a> tag is?

Reply With Quote
  #4  
Old February 2nd, 2005, 03:50 AM
rrector rrector is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Olney, IL
Posts: 9 rrector User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rrector Send a message via Yahoo to rrector
RE: Can someone please help with this.

alrighty...
lets see...
towards the bottom you have a line that says:
Code:
<a id="rLink" href="">

change that to:
Code:
<a id="rLink" href="" target="_blank">

And that should do it for you.

Reply With Quote
  #5  
Old February 2nd, 2005, 03:59 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Can someone please help with this.

Thanks so much! worked great!

Reply With Quote
  #6  
Old February 2nd, 2005, 04:14 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by nawlej.

Reason:

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Can someone please help with this.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT