Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 04-13-2008, 07:12 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 85
OS: xp


Link not working

Can anybody explain why my "HOME" buttom link has stopped working

http://www.cymru-alliance.co.uk/Fixture%20grid0607.htm

Thanks
CAONE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 04-13-2008, 06:19 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA


Re: Link not working

because you have it linking to http://www.cymru-alliance.co.uk/Home.htm you have the page saved as a .html file however change it to this. http://www.cymru-alliance.co.uk/Home.html
Damion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-14-2008, 09:32 AM   #3 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 85
OS: xp


Re: Link not working

Sorry I may have mised you

I have the "HOME" button on numerous pages and until recently it work. It suddenly stopped and I can not figure out why

In Dreamweaver I can select the button (on each page) and link it to my home page, I thought there must be a way of programing this in without having to do each page

Thanks for your help
CAONE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-17-2008, 12:13 AM   #4 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Exclamation Re: Link not working

Sounds like you want a quick fix on correcting the .htm error correct? If you haven't changed each link by hand here is a quick way to fix your problem in Dreamweaver.

*Make sure you have a backup of your site before using a find and replace all option*

Should be under EDIT menu.
Choose Find and Replace.
Choose folder of your site that you want to search.
Search by Code.

FIND: "http://www.cymru-alliance.co.uk/Home.htm"
Replace all: "http://www.cymru-alliance.co.uk/Home.html"

Make sure you have the "" or else it will find a correct link and add a l onto the end of it like Home.htmll.

Hope that helps!
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-17-2008, 02:24 AM   #5 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 85
OS: xp


Re: Link not working

Thanks

I think your remedy is for one page, I was looking for a fix for the whole site

I think the problem is in the menuscript.js file (below)

/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "buttons/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array("button1up.png","button2up.png","button3up.png","button4up.png","button5up.png","button6up.png","button7up.png");

overSources = new Array("button1over.png","button2over.png","button3over.png","button4over.png","button5over.png","button6over.png","button7over.png");

// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS
subInfo = new Array();
subInfo[1] = new Array();
subInfo[2] = new Array();
subInfo[3] = new Array();
subInfo[4] = new Array();
subInfo[5] = new Array();
subInfo[6] = new Array();
subInfo[7] = new Array();

//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//

subInfo[2][1] = new Array("Committee","http://www.cymru-alliance.co.uk/Committee.htm","");
subInfo[2][2] = new Array("Member Clubs","http://www.cymru-alliance.co.uk/Member%20clubs.htm","");
subInfo[2][3] = new Array("History","http://www.cymru-alliance.co.uk/History.htm","");
subInfo[2][4] = new Array("Rules","http://www.cymru-alliance.co.uk/CARules.htm","");
subInfo[2][5] = new Array("Ground Criteria","http://www.cymru-alliance.co.uk/Ground%20Criteria.htm","");
subInfo[2][6] = new Array("Records","http://www.cymru-alliance.co.uk/Records.htm","");
subInfo[2][7] = new Array("Contact","mailto:info@cymru-alliance.co.uk","");

subInfo[3][1] = new Array("Fixtures","http://www.cymru-alliance.co.uk/Fixtures0708.htm","");
subInfo[3][2] = new Array("Table","http://www.cymru-alliance.co.uk/League table0607.htm","");
subInfo[3][3] = new Array("Results Grid","http://www.cymru-alliance.co.uk/Fixture grid0607.htm","");
subInfo[3][4] = new Array("Current Form","http://www.cymru-alliance.co.uk/Current form.htm","");
subInfo[3][5] = new Array("Disciplinery table","http://www.cymru-alliance.co.uk/Disc table.htm","");
subInfo[3][6] = new Array("League Cup","http://www.cymru-alliance.co.uk/League cup 0607.htm","");
subInfo[3][7] = new Array("Goalscorers","http://www.cymru-alliance.co.uk/Goalscorers0708.htm","");
subInfo[3][8] = new Array("Photos","http://www.cymru-alliance.co.uk/Weekendinpics.htm","");

subInfo[4][1] = new Array("Latest News","http://www.cymru-alliance.co.uk/NEWSREVIEWSEPT.htm","");
subInfo[4][2] = new Array("Player registrations","http://www.cymru-alliance.co.uk/Players moves.htm","");
subInfo[4][3] = new Array("Club News","http://www.cymru-alliance.co.uk/NEWS2.htm","");
subInfo[4][4] = new Array("Links","http://www.cymru-alliance.co.uk/Links.htm","");

subInfo[5][1] = new Array("Manager of the month","http://www.cymru-alliance.co.uk/MOM.htm","");
subInfo[5][2] = new Array("Player of the month","http://www.cymru-alliance.co.uk/POM.htm","");

subInfo[6][1] = new Array("Structure","http://www.cymru-alliance.co.uk/PYRAMID.htm","");
subInfo[6][2] = new Array("Pyramid regualtions","http://www.cymru-alliance.co.uk/Pyramid%20rules.htm","");
subInfo[6][3] = new Array("Welsh Premier League","http://www.low.org.uk/LeagueTable.ink","");
subInfo[6][4] = new Array("Welsh Alliance League","http://www.welshallianceleague.co.uk/League_tables.dwt","");
subInfo[6][5] = new Array("Welsh National League","http://www.wnl.org.uk/tables.htm","");
subInfo[6][6] = new Array("Mid-Wales league","http://www.bbc.co.uk/wales/mid/sites/sport/pages/midwalesleaguetable.shtml","");




//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset = 4;
var ySubOffset = 19;



//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub = false;
var delay = 1000;
totalButtons = upSources.length;

// GENERATE SUB MENUS
for ( x=0; x<totalButtons; x++) {
// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
if ( subInfo[x+1].length < 1 ) {
document.write('<div id="submenu' + (x+1) + '">');
// SET DIV FOR BUTTONS WITH SUBMENU
} else {
document.write('<div id="submenu' + (x+1) + '" class="dropmenu" ');
document.write('onMouseOver="overSub=true;');
document.write('setOverImg(\'' + (x+1) + '\',\'\');"');
document.write('onMouseOut="overSub=false;');
document.write('setTimeout(\'hideSubMenu(\\\'submenu' + (x+1) + '\\\')\',delay);');
document.write('setOutImg(\'' + (x+1) + '\',\'\');">');


document.write('<ul>');
for ( k=0; k<subInfo[x+1].length-1; k++ ) {
document.write('<li>');
document.write('<a href="' + subInfo[x+1][k+1][1] + '" ');
document.write('target="' + subInfo[x+1][k+1][2] + '">');
document.write( subInfo[x+1][k+1][0] + '</a>');
document.write('</li>');
}
document.write('</ul>');
}
document.write('</div>');
}





//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
for ( x=0; x<totalButtons; x++ ) {
buttonUp = new Image();
buttonUp.src = buttonFolder + upSources[x];
buttonOver = new Image();
buttonOver.src = buttonFolder + overSources[x];
}
}

// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}



//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement(id) {
return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null;
}

// GET X COORDINATE
function getRealLeft(id) {
var el = getElement(id);
if (el) {
xPos = el.offsetLeft;
tempEl = el.offsetParent;
while (tempEl != null) {
xPos += tempEl.offsetLeft;
tempEl = tempEl.offsetParent;
}
return xPos;
}
}

// GET Y COORDINATE
function getRealTop(id) {
var el = getElement(id);
if (el) {
yPos = el.offsetTop;
tempEl = el.offsetParent;
while (tempEl != null) {
yPos += tempEl.offsetTop;
tempEl = tempEl.offsetParent;
}
return yPos;
}
}

// MOVE OBJECT TO COORDINATE
function moveObjectTo(objectID,x,y) {
var el = getElement(objectID);
el.style.left = x;
el.style.top = y;
}

// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu(subID, buttonID) {
hideAllSubMenus();
butX = getRealLeft(buttonID);
butY = getRealTop(buttonID);
moveObjectTo(subID,butX+xSubOffset, butY+ySubOffset);
}

// HIDE ALL SUB MENUS
function hideAllSubMenus() {
for ( x=0; x<totalButtons; x++) {
moveObjectTo("submenu" + (x+1) + "",-500, -500 );
}
}

// HIDE ONE SUB MENU
function hideSubMenu(subID) {
if ( overSub == false ) {
moveObjectTo(subID,-500, -500);
}
}



//preload();

Thanks
CAONE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-17-2008, 12:16 PM   #6 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Grin Re: Link not working

Looking at your script I would recommend just changing your file from home.html to home.htm

Especially since it looks to me that most of your other pages are using a .htm extension...

Not sure what dreamweaver version you are using but in 8 (and CS3) you can search within the folder and replace all. It will use the find and replace on every file within that folder. Not 100% on the .js files but they can be opened separately and just changed within. You can always test with the find all first to see what pages the find and replace would change before you used replace all.

Also noticed on your site if you click on any of the buttons other then HOME you get a 404 (broken link). I'm sure the idea is to click on a link from the drop down list, but I am one of those people who click on the button itself and like to see a summary/options about whats in the drop down list. Just in case you weren't aware of it.

Hope that helps.
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 01:32 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85