Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Links From Custom Main Page

Links From Custom Main Page

Locked

Views: 1,669

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
6 Jan 2009, 5:23 AM
#1
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Links From Custom Main Page

Hi

I'm building a custom front page with links to my cataloge.

My problem is the links work in Mozilla but not in Internet Explorer.

In the define pages editor for the main page i have;

<a id="womensLink" href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"> </a>

and in my stylesheet I have;

#womensLink {
position: absolute;
top: 220px;
left: 513px;
height:200px;
width: 158px;
}

My site is located at http://www.imagocollections.com.au

Any help would really be appreciated.

6 Jan 2009, 6:08 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Links From Custom Main Page

Try correct anchor text format

<a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"> </a>

Let us know

6 Jan 2009, 6:37 AM
#3
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

Hi

Just tried your suggestion and tried putting < > in every place i could think of, all of which stopped it working in Firefox too. Got it working in Firefox again using 'a href' as below.

<a id="womensLink"a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"></a>

Still not working in IE though. Any ideas?

Thanks

6 Jan 2009, 7:43 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Links From Custom Main Page

see below

6 Jan 2009, 7:44 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Links From Custom Main Page

Craig Robbo:

<a id="womensLink"a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"></a>

As you've found out, firefox is extremely forgiving while IE is stOOpid. You cannot have to a calls without the dumb IE going "HUH!?!"
You're better off moving the id to a div outside the <a href...

6 Jan 2009, 8:13 AM
#6
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

Hi

I'm really sorry but could I trouble you for an example of what you mean there. I'm a total newbie when it comes to HTML - I only got the code for the links because "zen-master" ghj42 gave it to me.

Thanks for your help

6 Jan 2009, 8:29 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Links From Custom Main Page

Change this> <a id="womensLink"a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"></a>to > <div id="womensLink"><a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33">SOMETHING HERE PLEASE</a></div>would probably work. Without the SOMETHING HERE PLEASE, nothing will show up.
Then your css would change to > #womensLink a{

position: absolute;
top: 220px;
left: 513px;
height:200px;
width: 158px;
}

I think you may have either misread ghj42 or caught him when he gave all his coffee to the devs:P

6 Jan 2009, 8:57 AM
#8
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

Thanks a heap for all of that.

Did as you said but the "SOMETHING HERE PLEASE" text is now displayed on the page and the link is limited to the text.

Sorry I should have explained myself a bit better. I was after the links to cover the photo frames pictured so that they form the links when they are clicked on.

6 Jan 2009, 9:32 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Links From Custom Main Page

Okay, I see what's going on but where are you defining image zones?

6 Jan 2009, 9:44 AM
#10
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

The front page is just one big .jpg. I'm trying to use

#womensLink a{
position: absolute;
top: 220px;
left: 513px;
height:200px;
width: 158px;
[/COLOR]}

in my stylesheet to define where the links are positioned (changing the positions for each image). Works for Firefox but not IE. Sorry for the confusion

6 Jan 2009, 9:54 AM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Links From Custom Main Page

What about using an image map?

6 Jan 2009, 10:25 AM
#12
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

Sorry - new at that one too! How would I go about doing that?

6 Jan 2009, 7:02 PM
#13
kobra avatar

kobra

Black Belt

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

Re: Links From Custom Main Page

Basic html coding for your custom page you can Google for more image map creation and start with this one
http://www.javascriptkit.com/howto/imagemap.shtml

6 Jan 2009, 9:18 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Links From Custom Main Page

I helped someone on image mapping, with a post a couple of weeks ago... Do a search for "image map" or hotspot.

7 Jan 2009, 1:24 AM
#16
craig_robbo avatar

craig_robbo

Zen Follower

Join Date:
Oct 2008
Posts:
109
Plugin Contributions:
0

Re: Links From Custom Main Page

Many thanks to you both. I should be able to get it working with all of that:smile:

7 Jan 2009, 8:55 AM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Links From Custom Main Page

Glad to see that things look in hand.
BTW, you can have an id for a link, but you can't put two "a" tags into it:html <a id="womensLink"a href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33"></a> It would be like this:```html
<a id="womensLink" href="http://www.imagocollections.com.au/index.php?main_page=index&cPath=33">content</a>


You wouldn't address a link named #womensLink as
#womensLink a {
but as
a#womensLink {

#womensLink a {
means a link inside an element named #womensLink.
7 Jan 2009, 9:05 AM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Links From Custom Main Page

It is possible that IE doesn't treat an id in a link correctly; there are plenty of other examples of it choking on valid CSS treatments.