• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Use and Image in an Anchor link
PostPosted: Sun Jun 10, 2012 3:59 am 
Offline
New Member

Joined: Sun Nov 27, 2011 8:48 pm
Posts: 1
I'm using CMS Version 1.9.4.2.

I can't get the anchor tag to work with a button/image for the link.

I've successfully created an anchor tag that takes you back to the top of the page that simply says "back to top." Here's the working code:

<p>{anchor anchor='projecttop' text='back to top'} </p>

However, what I'd like is have that link use an image with a mouseover, like the Previous and Next buttons I'm using at the top of the page. Here is the successful code for the Previous and Next buttons that use a self-link for the href:

<p style="text-align: right;">
<a href="{cms_selflink href='baptist-seminary' }">
<img onmouseover="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Prev_1.png';" onmouseout="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Prev_0.png';" src="uploads/images/Buttons_Prev_0.png" alt="" width="48" height="24" /></a>
<a href="{cms_selflink href='berkeley-piano-club' }">
<img onmouseover="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Next_1.png';" onmouseout="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Next_0.png';" src="uploads/images/Buttons_Next_0.png" alt="" width="48" height="24" /></a>
</p>

SO, I figured I could easily create a similar image button using the anchor tag. Here's the code the way I thought it should work, but it DOES NOT:

<p>
<a {anchor anchor='projecttop' text=''}>
<img onmouseover="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Top_1.png';" onmouseout="this.src='http://www.berkeleyplaques.org/TESTbhpp/uploads/images/Buttons_Top_0.png';" src="uploads/images/Buttons_Top_0.png" alt="" width="48" height="24" /></a>
</p>

The image shows up correctly with the mouseover, but the link doesn't work. Can anyone help me fix this code so I can get an image button to take us back to the anchor at the top of the page?

thanks!


Top
 Profile  
 
 Post subject: Re: Use and Image in an Anchor link
PostPosted: Sun Jun 10, 2012 10:48 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 377
Location: Delft, Netherlands
use onlyhref=1 in your {anchor} tag


Top
 Profile  
 
 Post subject: Re: Use and Image in an Anchor link
PostPosted: Sun Jun 10, 2012 12:19 pm 
Offline
Power Poster
Power Poster

Joined: Wed Mar 19, 2008 4:54 pm
Posts: 507
It would be best to update as quick as possible top version 1.10.3 tot prevent securityproblems with your site.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner