Be a Supporter!

"Shapes"

  • 375 Views
  • 13 Replies
New Topic Respond to this Topic
NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
"Shapes" 2006-07-29 15:22:58 Reply

... stuff with

<map></map> and similar?

Like on NG.
The NG header is actually a background, but they somehow made it into a link?

Can you understand me?
I know I am explaining bad...

How to do that?

elbekko
elbekko
  • Member since: Jul. 23, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to "Shapes" 2006-07-29 15:35:12 Reply

Image maps you mean?
They're actually pretty simple, you just have to define a shape (standard is rectangle), and give the corner coordinates. (and a link ofcourse :P)


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

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

BBS Signature
NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to "Shapes" 2006-07-29 15:54:28 Reply

At 7/29/06 03:35 PM, elbekko wrote: Image maps you mean?
They're actually pretty simple, you just have to define a shape (standard is rectangle), and give the corner coordinates. (and a link ofcourse :P)

I know.
But how do I learn the coordinates?

Do they vary bi screen resolution (like the absoulute positions) ?

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to "Shapes" 2006-07-29 15:59:07 Reply

At 7/29/06 03:54 PM, Nino_JoJ wrote:
At 7/29/06 03:35 PM, elbekko wrote: Image maps you mean?
They're actually pretty simple, you just have to define a shape (standard is rectangle), and give the corner coordinates. (and a link ofcourse :P)
I know.
But how do I learn the coordinates?

Do they vary bi screen resolution (like the absoulute positions) ?

Coordinates are based on relative pixel coordinates of the image itself. If you don't want to waste time coding coordinates, you could just use frontpage or dreamweaver. Frontpage and dreamweaver (and other html editors) have an iamge map drawing feature, so you can just draw the image map square, circle, or polygon with the program and it'll code the correct coordinates for you.

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to "Shapes" 2006-07-29 16:04:21 Reply

Oh and by the way, the coordinate order is as follows:
Left, Top, Right, Bottom

Usage:

<map name="mymap">
<area href="URL" shape="rect" coords="left, top, right, bottom">
</map>
<img border="0" src="image.gif" usemap="#mymap" width="100" height="100">

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to "Shapes" 2006-07-29 16:06:01 Reply

I noticed that, but what is the difference between absolute and relative positions?

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to "Shapes" 2006-07-29 16:08:53 Reply

At 7/29/06 04:04 PM, JeremysFilms wrote: <img border="0" src="image.gif" usemap="#mymap" width="100" height="100">

But how will I use usemap if the image will be a background?

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to "Shapes" 2006-07-29 16:15:57 Reply

At 7/29/06 04:06 PM, Nino_JoJ wrote: I noticed that, but what is the difference between absolute and relative positions?

When I say relative to the image, I'm saying that 0 would be the top left pixel of the image, with absolute, it would be everything, the entire screen. So with iamge maps, 0 is always the top left pixel, no matter where the image is in relation to the screen.

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to "Shapes" 2006-07-29 16:29:34 Reply

At 7/29/06 04:15 PM, JeremysFilms wrote: When I say relative to the image, I'm saying that 0 would be the top left pixel of the image, with absolute, it would be everything, the entire screen. So with iamge maps, 0 is always the top left pixel, no matter where the image is in relation to the screen.

Oh, I understand, so that's why it is regardless of screen resolution.

elbekko
elbekko
  • Member since: Jul. 23, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to "Shapes" 2006-07-29 16:30:34 Reply

Yeah. And for a background... no idea really =/


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

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

BBS Signature
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to "Shapes" 2006-07-29 17:23:06 Reply

actually, if you highlight the header, you'll see they have placed an image over the newgrounds part. It's a transparent gif.....and they just linked that as well, i did that with my website's header.


Hello, from the past!
[ PHP: Main ]

BBS Signature
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to "Shapes" 2006-07-29 17:26:26 Reply

Newgrounds also used a tricky little thing that uses a 1x1 (found here) and stretches it out by using the width and height....if you don't belive me....right click and hit view source...then scroll down until you hit the NG header background...and look for it there.


Hello, from the past!
[ PHP: Main ]

BBS Signature
NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to "Shapes" 2006-07-29 18:05:14 Reply

At 7/29/06 05:26 PM, Momo_the_Monkey wrote: Newgrounds also used a tricky little thing that uses a 1x1 (found here) and stretches it out by using the width and height....if you don't belive me....right click and hit view source...then scroll down until you hit the NG header background...and look for it there.

I know I searched that too.

cherries
cherries
  • Member since: Jun. 7, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to "Shapes" 2006-07-29 18:29:01 Reply

they scale this image over it.