![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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 |
|
|
|
| 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 |
|
|
#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
|
|
|
|
|
|
#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 |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista
|
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!
__________________
|
|
|
|
|
|
#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 |
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista
|
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.
__________________
|
|
|
|
![]() |
| Thread Tools | |
|
|