Solved

Make code non clickable

Posted on 2016-10-06
6
52 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
6 Comments
 
LVL 55

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 33

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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Closing Comment

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

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 33

Expert Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Obtaining data on ASP 8 29
jQuery Dialog Autoresize Bug 2 25
Word, Excel, Access icons 4 17
HTML Anchor Link Problem 3 36
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

828 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