coding help, please!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

chem3

Thread Starter
Joined
Apr 6, 2005
Messages
27
Hello,

1- I want to use a GIF image to refer to some URL, and I learned that the following code should be used to achieve that:

<a href="target URL"><img border="0" src="URL for the GIF image" width="..." height="..."></a>

But the question now is: I want to use an image as a referral for some URL, but I don't want the "target URL" to appear in IE's Status Bar when the cursor hovers over the GIF image and I also want to disable right-click over the image, so what code can I use to get that done (referring to a URL, disabling URL preview in Status Bar, and disabling right-click over the image), if I could???

2- Can I combine the referral code with (incorporate it into) the GIF image file, so that when I want to insert it in a webpage I just insert the image code <img border="0" src="URL for the GIF image" width="..." height="..."> and as the code "<a href="target URL"> </a>" combined with the image file it will refer to the target URL with no need to insert the referral code because it's already combined with the image file?
Is there some way or some program that can be used to combine codes with GIF files, if it is possible?

Thanks
 
Joined
Apr 30, 2005
Messages
3,012
AKA Arizona said:
Why the secerets? You could make a flash image.
The only thing I could think of for the secrets, is that he wants to trick people into clicking affiliate links that either 1) make him money or 2) bring up his ratings on a topsites list. :rolleyes:

~~~~~~~~
To answer his right-click question:
It's impossible to prevent it completly. For one thing those type of codes usually only work in IE (so if someone is browseing your site in a different browser, oh well). And for another thing, they could just disable JavaScript in their browser, which would deactivate the no-right-click code if they do have trouble right-clicking (y)
 
Joined
Jul 3, 2005
Messages
61
Use this code for "No Right Click" - right under the HEAD in the HTML area of your webpage.


<head>

<script language="JavaScript"> <!--

var message=" Message for the alert box "

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>

I agree with namenotfound that there are other ways of getting your graphics or even knowing the source of your graphics. These things are only to scare novices and occasional web surfers.
 
Joined
Jul 8, 2002
Messages
14,681
1- Use JavaScript to change the statusbar. You can't stop someone from right-clicking, and its none of your business to. Its just annoying when you try.
2- No.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top