Be a Supporter!

no image links

  • 505 Views
  • 13 Replies
New Topic Respond to this Topic
rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
no image links 2006-11-04 19:36:57 Reply

if you go to a site like google, you'll see that the cursor remains the same and that clicking on the image will lead you nowhere. I looked at the source code, and the javascript didn't really make sense to me. Can someone explain how to do it, and how it works?

Damien
Damien
  • Member since: Mar. 12, 2006
  • Offline.
Forum Stats
Supporter
Level 30
Artist
Response to no image links 2006-11-04 20:00:00 Reply

It's just refering to the same page( index.html probably) everytime you click it it just refreshes the page ;)
Plain logic, and quit useless if you ask me :p

Cheers

rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to no image links 2006-11-04 20:20:44 Reply

no, go to google, the cursor remains the same when you put it over the image, and it goes nowhere.

Pilot-Doofy
Pilot-Doofy
  • Member since: Sep. 13, 2003
  • Offline.
Forum Stats
Member
Level 37
Musician
Response to no image links 2006-11-05 01:12:45 Reply

[a style="cursor: hand;"><img src="omfg.gif" width="100" height="50" alt="lollink" /></a]

Like that?

Jordan
Jordan
  • Member since: Apr. 23, 2006
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to no image links 2006-11-05 02:07:49 Reply

At 11/4/06 08:20 PM, rmbrstrongbad18 wrote: no, go to google, the cursor remains the same when you put it over the image, and it goes nowhere.

That is because it isn't a link, just a picture:
<img alt="Google" src="/intl/en_uk/images/logo.gif" height="110" width="276">

rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to no image links 2006-11-05 06:36:01 Reply

don't any of you get it?

images, by default, are clickable. if no links are assigned, clicking them will bring them to the image file. google had javascript in the source code that obviously had something to do with the image, and im trying to figure it out.

Loccie
Loccie
  • Member since: Feb. 27, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to no image links 2006-11-05 07:12:38 Reply

At 11/5/06 06:36 AM, rmbrstrongbad18 wrote: images, by default, are clickable. if no links are assigned, clicking them will bring them to the image file.

Eh what browser are you using because here on my computer clicking on images does not show me the image file. If you mean dragging them to the title bar then I know what you mean. I looked at google and they indeed prevent that with some kind of js. Just look at the source code cause there is not a lot of code and maybe try some of it.

elbekko
elbekko
  • Member since: Jul. 23, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to no image links 2006-11-05 08:21:18 Reply

At 11/5/06 07:12 AM, Loccie wrote: If you mean dragging them to the title bar then I know what you mean. I looked at google and they indeed prevent that with some kind of js.

Not really =/


"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature
rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to no image links 2006-11-05 12:26:02 Reply

yeah, they did, all images are clickable by default or have some other means other than right-clicking to get to the image file unless another link is assigned, but google used javascript to prevent this, and many other sites like Myspace, Yahoo, and meebo.

rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to no image links 2006-11-05 12:27:18 Reply

also, by the way, my browser is firefox. there's different means for different browsers but javascript is able to block it and I'm not sure how.

Storm
Storm
  • Member since: May. 19, 2006
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to no image links 2006-11-05 13:17:11 Reply

At 11/5/06 07:12 AM, Loccie wrote: Just look at the source code cause there is not a lot of code and maybe try some of it.

Or disable JavaScript from Tools > Options > Content Tab.

Yorou
Yorou
  • Member since: Sep. 27, 2006
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to no image links 2006-11-05 13:59:13 Reply

At 11/4/06 07:36 PM, rmbrstrongbad18 wrote: if you go to a site like google, you'll see that the cursor remains the same and that clicking on the image will lead you nowhere. I looked at the source code, and the javascript didn't really make sense to me. Can someone explain how to do it, and how it works?

You are very noobish, aren't you? lol. Google's logo picture is special because it has programming in it so that on holidays, it changes picture. On those days you can click on it. It's kinda complex, but that's how it works.

Jcrypt
Jcrypt
  • Member since: Aug. 23, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to no image links 2006-11-05 14:08:25 Reply

i'm having no problems at all dragging it to the address bar, or with right-clicking it. And to the guy above me please quit reffering to people being 'noobish' because obviously you don't know what your talking about either. That 'programming on the image' you speak of is Javascript and it's just a rotation script according to the time of the year (assuming without looking).

rmbrstrongbad18
rmbrstrongbad18
  • Member since: Dec. 23, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to no image links 2006-11-05 19:03:19 Reply

1. Please don't call me a noob unless you know what I'm talking about. I don't care about changing holidays, I'm referring to javascript for unclickable images.

2. I know you can right click it, but left clicking leads you nowhere with some images.