There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
coding help, please!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
chem3's Avatar
Junior Member with 27 posts.
 
Join Date: Apr 2005
07-Jul-2005, 04:46 AM #1
coding help, please!
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
AKA Arizona's Avatar
Computer Specs
Distinguished Member with 2,911 posts.
 
Join Date: Jul 2003
Location: Mississippi South of Mason Dixion
Experience: Computer & Web Design Engineer
07-Jul-2005, 08:13 AM #2
Why the secerets? You could make a flash image.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
07-Jul-2005, 10:11 AM #3
Quote:
Originally Posted by AKA Arizona
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.

~~~~~~~~
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
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
zero11's Avatar
Member with 61 posts.
 
Join Date: Jul 2005
Location: Toronto Canada
Experience: Intermediate
07-Jul-2005, 02:24 PM #4
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.

Last edited by zero11 : 07-Jul-2005 02:25 PM. Reason: To Add further comments
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
08-Jul-2005, 10:31 PM #5
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.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:12 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.