close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

home page active links

Thread began 9/03/2010 1:01 am by rob75685 | Last modified 9/03/2010 2:41 pm by neilo | 1725 views | 6 replies |

rob75685

home page active links

hi there

I have my site set up and working great with CSSMW 205

The only problem I have is that when you first visit the site 4 of the menu headings are coloured active:

www.sportingequals.org.uk/

I've attached my treexml.xml file as I think there must be something wrong here...

thanks for your help

Attached Files
treexml.xml.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the problem is that the links for those for menu items is set to to an internal anchor:

<li class="parent"><a href="#">news</a>

when you visit the page at:
www.sportingequals.org.uk/



the blank anchor:
<a href="#">

actually matches.

However if you visit:
index.php


the blank anchor will not match.


Either always use index.php to access the page, or give those menu items a page to link to.

Sign in to reply to this post

rob75685

hi Jason

Thanks for your reply

Those particular menu items don't have links... I tried removing the # but still had the same results..

How do I remove the links from them but still keep the drop down function?

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

you cant really, your best bet would be to give them bogus links, then use javascript to disable them;

<a href="bogus.htm" onclick="return:false;">news</a>

However, this does not work in all browsers.

Sign in to reply to this post

rob75685

ok - what I've done is just added the top level link to each one

is there a way for the home page link to be activated when the link is just www.domain.com

without the index.php ?

Sign in to reply to this post

Jason ByrnesWebAssist

no, the highlighting works by matching the page name in the link to the page name in the address in the address bar.

Sign in to reply to this post

neilo

One (probably not ideal) way to get round this might be to have a file in your root directory called index.html with no content other than to have a META redirect in the <head></head> area with a refresh delay of 0.

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<meta http-equiv="Refresh" content="0;URL=index.php" />
</head>

<body>
</body>
</html>  

This assumes that .html is higher than .php in the default files hierarchy on your server - (it usually is).

Might be worth a try. You could also - while you're at it - add all the Meta Description and Keywords into the head of the html document too.

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...