Changing the top banner text
This will change the text in the top banner depending on what the topic of the page is.
This will be based on set_home().
The JavaScript is:
The Code
The JavaScript to manipulate the menu links was .......
function set_home() {
// WARNING - make sure the ids are all correct in the menus or setAttribute will fail
var a = document.getElementById("home_link");
a.setAttribute("href", "index.html"); // a.href="index.html:;
var b = document.getElementById("home_link1");
b.setAttribute("href", "index.html"); // a.href="index.html:;
var c = document.getElementById("contact_link1");
c.setAttribute("href", "#"); // a.href="contact_vh.html https://belchampwaltervillagehall.co.uk/correo/:
var d = document.getElementById("contact_link2");
d.setAttribute("href", "#"); // a.href="contact_vh.html:
// probably need to about links}
To change the top banner text there needs to be an id assigned to the text and a function to set the text depending on the screen resolution.
Links
- Other - Technical Stuff
- Fixed Top Menu
- Wordpress