JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

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 Dev Shed Forums Sponsor:
  #1  
Old September 12th, 2012, 03:25 PM
TLW97 TLW97 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 2 TLW97 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 11 sec
Reputation Power: 0
Other - OnClick event question

Thanks in advance for answering this, I don't generally involve myself in code but this is an instance where I understand there is a simple solution that I just can't find.

This was is the module code -

<script type="text/javascript" src="nivo-slider/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="nivo-slider/jquery.nivo.slider.js"></script>



<div id="wrapper">

<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">

<a style="display:none;" onclick="window.open(this.href); return false;" href="/m/news/view/Futuristic-Dodge" ><!----Maximum---22-character-->
<img src="slider_img/toystory.jpg" alt="" title="" /><!----Maximum---22-character-->
<div class="txt" style="display:none;">
<h1 style="color:#ffffff">You Will Be Unprepared</h1><!----Maximum---22-character-->
A young girl is institutionalized by her wicked stepfather.Retreating <!----Maximum---50-character-->
to an alternative reality as a coping strategy, she envisions a plan<!----Maximum---50-character-->
which will help her escape from the facility. The lines between<!----Maximum---50-character-->
reality and fantasy blur as...<!----Maximum---35-character-->

</div>

</a>

All I want is for the link in the above sample to not open in a separate window.

I can find a ton of information for how to make a link open in a new window but I haven't found much for what changes would make it just go to a specific page on the site without opening a new window.

Please help.

Reply With Quote
  #2  
Old September 12th, 2012, 06:33 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 43 m 47 sec
Reputation Power: 7053
Remove
Code:
onclick="window.open(this.href); return false;"
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old September 12th, 2012, 09:14 PM
TLW97 TLW97 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 2 TLW97 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 11 sec
Reputation Power: 0
Thanks but I need something different.

That makes the link appear in the same module position where the photo slider (jacvascript) is. Sort of a different page on the site in a really small iframe.

I don't think I was clear. The code as it is above is for a photo slider module with a text link over the photo. I want the text link that is overlayed on the photo to open to the page on the site, I just don't want a whole different window to pop up to see the page it's pointing to, I want it to come up as another page like it would with a navigational button link.

I hope this makes more sense and thanks for the help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Other - OnClick event question

Developer Shed Advertisers and Affiliates



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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap