HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 November 3rd, 2009, 09:05 PM
Tongamann Tongamann is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 4 Tongamann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 22 sec
Reputation Power: 0
Disabling flash banner link

Hi,
I have a flash banner that automatically links to an external page, once it is clicked. I want to embed it in a way, that once the user clicks on the banner - that a new tab/window is opened with that specific link but the main/initial tab remains on my site.

I've tried it like this:

<object type="application/x-shockwave-flash" data="sample_banner.swf" width="120" height="600" id="xy">
<param name="movie" value="sample_banner.swf" />
<param name="scale" value="exactfit" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
</object>

I've tried surrounding it with

<a href="externalLink.html" target="_blank">
see above
</a>

but it still hasn't the expected outcome.

Pls help. Thanks in advance.

Reply With Quote
  #2  
Old November 4th, 2009, 01:25 AM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Code Monkey V. 0.9
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 608 Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level)Catacaustic User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 15 h 30 m 22 sec
Reputation Power: 208
Because it's a Flash object, it doesn't behave in the same way that standard HTML elements do. That's why it doesn't act any differently when you wrap in in an <a href=''> tag.

The easy way to change this is to modify the original FLA file and make the link open in a new window, then export the banner again.

If you don't have access to the original Flash FLA file, there is a way to do this, but it is not a quick or simple fix.

If you really want to, you can use CSS to make a container, place the Flash banner inside a new container that is inside the first one. Then add another container to the first one that has a higher z-index value then the lower container. This should give you a blank "overlay" over the top of the Flahsh object that you can add the link to.

Please be advised that I haven't built or tested this, and this is only how I would assume that it would work based on normal HTML practices.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Disabling flash banner link


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.

 
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.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
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.

 
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.

 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek