Solved

Make code non clickable

Posted on 2016-10-06
6
61 Views
Last Modified: 2016-10-07
I"m looking to make this code a non clickable link.  I am not coder by any means so any help would be appreciated..

<div class="tc_div_46231" style="width:100%;height:auto;border:1px solid #666666"><a title="Countdown" href="http://www.tickcounter.com/widget/countdown/1577750400000/utc/dhms/666666FF010DFFFFFFFF0000/0/C0C0C01/"></a><a title="Countdown" href="http://www.tickcounter.com/">Countdown</a></div><script type="text/javascript">(function(){ var s=document.createElement('script');s.src="http://www.tickcounter.com/loader.js";s.async='async';s.onload=function() { tc_widget_loader('tc_div_46231', 'Countdown', 650, ["1577750400000","utc","dhms","666666FF010DFFFFFFFF0000","0","6666661",""]);};s.onreadystatechange=s.onload;var head=document.getElementsByTagName('head')[0];head.appendChild(s);}());</script>
0
Comment
Question by:Stevens06
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 41832133
There is no such thing as a non-clickable link - if it is not clickable it is just plain text.

Is there a reason you can't just remove the <a> tags from around the text - or are you looking to modify the link after it is in page.

What is it you are wanting to do - or prevent from happening.
0
 
LVL 34

Expert Comment

by:ste5an
ID: 41832140
That's not possible with that widget..
0
 
LVL 12

Accepted Solution

by:
funwithdotnet earned 500 total points
ID: 41832488
You might be able to add a transparent overlay.

Use the CSS Opacity property along with a positive z-index on a <div> that overlays the area with the 'disabled' link. Something like this might work:
HTML:
<div id="TransparentDiv"></div>

Open in new window

CSS: (I think this sample will 'disable' the entire page.)
#TransparentDiv
{
    display: block; 
    opacity: 0.0; 
    filter: alpha(opacity=0); 
    float:left; 
    position:fixed; 
    background-color: #FFFFFF;  
    width:100%; 
    height:100%; 
    z-index:3;
    margin-top: -20px;
    margin-bottom: -20px;
}

Open in new window

Toggle the display property from block to none to enable/disable the overlay.
0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 

Author Closing Comment

by:Stevens06
ID: 41833879
Adding the overlay worked perfect.
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 41833971
just be aware an overlay is dead simple to get rid of. Right click, Inspect Element, delete and it is gone.

One way of getting rid of the link is
Using jQuery
$(function() {
  $('a.tc_div_46231').attr({href: ''});
});

Open in new window


But without know what it is you want to do this might not be the right solution either.
0
 
LVL 34

Expert Comment

by:ste5an
ID: 41834266
@Julian: This will stop the widget.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question