close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to 'Show a graphic tick, in a visited link'?

Thread began 5/26/2011 7:14 am by email405213 | Last modified 5/27/2011 6:15 am by email405213 | 3323 views | 3 replies |

MarkBeta Tester

How to 'Show a graphic tick, in a visited link'?

Hi,

Just wondered is it possible to show to a graphic 'tick' (jpg, gif etc) to appear just to the left or right of a visited menu item, and how would I acheive this?

Or has anyone already done this, or anyone having problems or solutions etc.

Many thanks!
Mark

Sign in to reply to this post

neilo

That would depend on the menu you are using (assuming it is a CSSMenuWriter menu). Some already use background images for normal and hover states, so adding a tick image wouldn't work on those without a clear understanding of how the (usually three) bg images were styled.

It would be fairly straight forward to add a tick as a background image to the visited style of a menu item that did not already have a background image:

[element_name] a:visited {
/* your existing styles */
background-image: url(images/tick.png);
background-repeat: no-repeat;
background-position: right center;
}

That would display the image at the right. Your list menu would obviously need to be wide enough to accomodate it and clear the link text. You could add a padding-right:XXpx to the element the same width as the tick image if you wanted to make sure the link text didn't overlap the tick image.

This would need to be done after the CSSMenuWriter has done its job, otherwise you could lose the changes.

Sign in to reply to this post

MarkBeta Tester

Hi neilo,

Thank you for replying, appreciate that.

Yes, done as you say, and also created a visited link in the Design tab in the cssmenu wizard, and still any image I do, either hard-coded to the url (http) or done via the site root (../ etc) - does not work or show the image - any image?

I'm using latest versions of chrome, ie9 and firefox 4. Whenever a menu item is clicked, it will show the original background grad (selected from the wizard) but will not show the background from the visited link (it will however show the text colour, or a coloured solid background when visited - just no images?

R, Mark

Sign in to reply to this post

MarkBeta Tester

more info

hi

apparently, according to this link, there is no way now, to show a graphic image as a visited link because of some sort of privacy thing (excuse my ignorance, I'm not much at understanding programming code and such like):

privacy-related-changes-coming-to-css-vistited/

Anyone have any workarounds, I (and probabily other developers) will be most grateful.


There is a paragraph in the above article which says:

•If you’re using background images to style links and indicate if they are visited, that will no longer work.

It seems coloured backgrounds will work on visited links though?

R

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...