Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Is it possible to create a Hotspot Link?

Is it possible to create a Hotspot Link?

Locked

Views: 4,765

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
1 Apr 2008, 3:58 PM
#1
dothanbydesign avatar

dothanbydesign

New Zenner

Join Date:
Aug 2006
Posts:
35
Plugin Contributions:
0

Is it possible to create a Hotspot Link?

If I create a new logo and add text/words on it in photoshop, I can create a link to external pages or ez pages using a hotspot over each word.
How do I load this to the header area? ( I know how to replace the logo.gif it is getting rid of the old link associated with the default logo and making my new links work that is the issue.) It is named to replace the existing logo.gif. The logo with the links work when I place it on a html page for testing, now I need to load it to the site and replace the existing logo.gif.

1 Apr 2008, 7:13 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is it possible to create a Hotspot Link?

You would create an image map and enter it in your copy of tpl_header.php

Google for insight into how to write an image map

1 Apr 2008, 7:35 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

I assume you understand that it's not the image that does the linking, but (as Kobra indicates) the underlying "map" which designates url's to mapped co-ordinates.

Do you know how to create the html that drives the map?

(And, once you've created it, where to put it?)

1 Apr 2008, 7:46 PM
#4
dothanbydesign avatar

dothanbydesign

New Zenner

Join Date:
Aug 2006
Posts:
35
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

Thanks for the input, no I am not familar with mapping an image I will do some research but please send any info you have time for.

Thanks to all.

1 Apr 2008, 7:55 PM
#5
dothanbydesign avatar

dothanbydesign

New Zenner

Join Date:
Aug 2006
Posts:
35
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

OK I did some reading on this, I typically use Dreamweaver to do this in a html document would I do this and place the html code in the header area?

2 Apr 2008, 2:13 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is it possible to create a Hotspot Link?

I don't use DW so I can not atteat that the code it generates will be correct but in general to answer your question - Yes

2 Apr 2008, 4:01 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

dothanbydesign:

and place the html code in the header area?

Be VERY CAREFUL about what bits of clipped code you place in the header!

9 Jun 2008, 5:22 AM
#8
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

I successfully created hotspot links in the header, but when I tried to set them up for an image placed in a blank box (I downloaded the blank box mod) -- it doesn't work. Any idea what I'm doing wrong? Thank you!

Here is the link to my site: http://www.mishutkadesign.com//index.php?main_page=page&id=2

9 Jun 2008, 11:02 AM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Is it possible to create a Hotspot Link?

I assume that the New Items, Customize, etc. is the image in question?

The way I did this for a new cart I'm building was to set up a list in the blank sidebox (in your case, 4) with the anchors in the list item, each with it's own id.

Then I did the rest in the stylesheet, by using the image as the background in the sidebox and defining the image map areas by id (#) for size and placement.

Google for CSS imagemap - lots of info out there.

9 Jun 2008, 12:38 PM
#10
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

stevesh, thanks for your reply!

I should have been more specific: the image in question is in the left column (the one with 4 squares). I have the image map set up for 4 sections of the image, but the "hand" doesn't appear (hence the links don't work).

The image is placed in the in a blank box (from the blank box mod); not sure if this is affecting the map's behaviour? Here is the code:

<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*/

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

// Replace the text and HTML tags between the apostophes.
// Use as many or as few lines using this model as you need for your custom content.

$content .= '<p></p>';
$content .= '<img src="includes/templates/MDS/images/sidebox-nav.gif" alt="" width="200" height="200" border="0" usemap="#Map" /><map name="Map" id="Map">
<area shape="rect" coords="0,-2,96,96" href="http://www.mishutkadesign.com//index.php?main_page=page&id=19" />
<area shape="rect" coords="106,1,201,96" href="http://www.mishutkadesign.com//index.php?main_page=page&id=20" />
<area shape="rect" coords="0,105,96,199" href="http://www.mishutkadesign.com//index.php?main_page=page&id=21" />
<area shape="rect" coords="104,104,201,199" href="http://www.mishutkadesign.com//index.php?main_page=page&id=22" />
</map>';

$content .= '</div>';
?>
9 Jun 2008, 12:48 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Is it possible to create a Hotspot Link?

I think you'll need anchors to do that - <a href "http// etc.></a>

9 Jun 2008, 1:02 PM
#12
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Is it possible to create a Hotspot Link?

Or maybe not - that seems to be the right syntax.

16 Oct 2008, 1:19 AM
#13
grey avatar

grey

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

kobra:

You would create an image map and enter it in your copy of tpl_header.php

Google for insight into how to write an image map

Can somebody post an example of how the modified tpl_header.php should look? I know how to map an image, I just can't figure out how to edit this file to reflect it!

16 Oct 2008, 5:17 AM
#14
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Is it possible to create a Hotspot Link?

Grey:

Can somebody post an example of how the modified tpl_header.php should look? I know how to map an image, I just can't figure out how to edit this file to reflect it!
Try
http://www.zen-cart.com/forum/showthread.php?t=96817

16 Oct 2008, 1:37 PM
#15
grey avatar

grey

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Is it possible to create a Hotspot Link?

Thanks!