HI!
I’m getting closer to wrapping this project up…again as a non-programer person…this software is amazing.
I have searched the forums and don’t quite understand how to make a couple things work.
If I understand correctly to cannot use a button to link to a specific pixel height Y value for the page but I CAN to a DIV ID? Is that correct?
But how do I assign with HYPE a DIV ID to a specific place or thing on the page…say for example the CONTACT form or other text box?
Also I would like to scroll as opposed to jump if possible… I searched the forum and found the following code I copied below. Again sorry for the newb ignorance… Is that something that goes in the header?
Thanks so much for your time! I love learning this stuff…wish I was better at it.
The site is here is you wanna look at it… http://www.annafaye.com
Scrolling…
$(function() {
$(‘a[href*=#]:not([href=#])’).click(function() {
if (location.pathname.replace(/^//,’’) == this.pathname.replace(/^//,’’) && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $(’[name=’ + this.hash.slice(1) +’]’);
if (target.length) {
$(‘html,body’).animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});