Hey there,
I've been working on another site and once more, I seem to encounter the issue where jQuery doesn't do the job it is supposed to do. Instead of animating a scroll to the top of the page when a user clicks on 'top' in the footer, it doesn't do that. It just pops to the top. I haven't got Javascript disabled in my browser, so that doesn't seem to be the cause of this.
I put the as an echo in UTD. Here's the code:
[php]
echo ('
$(document).ready(function(){
$("block1").load(function() {
$(this).stop().animate({"opacity": "0.4"}, "slow");
});
$("#block1").mouseover(function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
$("#block1").mouseout(function() {
$(this).stop().animate({"opacity": "0.6"}, "slow");
});
$("#block2").mouseover(function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
$("#block2").mouseout(function() {
$(this).stop().animate({"opacity": "0.6"}, "slow");
});
$("#block3").mouseover(function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
$("#block3").mouseout(function() {
$(this).stop().animate({"opacity": "0.6"}, "slow");
});
$("#block4").mouseover(function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
$("#block4").mouseout(function() {
$(this).stop().animate({"opacity": "0.6"}, "slow");
});
$("#block5").mouseover(function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
$("#block5").mouseout(function() {
$(this).stop().animate({"opacity": "0.6"}, "slow");
});
});
$(document).ready(function() {
$(".scroll").click(function(){
$("html, body").animate({scrollTop:0}, "slow");
return false;
});
});
');
[/php]
The second issue would be the menu: it seems that whenever I right click on a submenu item, it pops from it's original position. Any idea why this is happening?
Any help would be greatly appreciated.
The website may be found at: http://www.solidscan.nl.
Two issues: jQuery not working and menu issue
For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Return to “Layout and Design (CSS & HTML)”
Jump to
- Official Boards
- ↳ README FIRST!!!
- ↳ Announcements
- ↳ General Discussion
- Support Boards
- ↳ CMSMS Core
- ↳ Modules/Add-Ons
- ↳ Help Wanted (commercial)
- ↳ Translations
- Community Boards
- ↳ Tips and Tricks
- ↳ CMS Show Off
- ↳ Layout and Design (CSS & HTML)
- ↳ Feature ideas
- ↳ Developers Discussion
- ↳ The Lounge
- International Discussions
- ↳ Czech/Slovak - Česky/Slovensky
- ↳ Danish - Dansk
- ↳ Dutch - Nederlands
- ↳ Aankondigingen
- ↳ Tips en Trucs
- ↳ Vertalingen & Documentatie
- ↳ Hulp gezocht (commercieel)
- ↳ Finnish - Suomi
- ↳ French - Français
- ↳ German - Deutsch
- ↳ BITTE ZUERST LESEN !!!
- ↳ Ankündigungen
- ↳ Installation und Einstellungen
- ↳ Module und Tags
- ↳ Smarty-Tipps und -Tricks
- ↳ Layout und Design
- ↳ Suchmaschinenoptimierung (SEO)
- ↳ HowTo's
- ↳ Übersetzungen
- ↳ Show Off
- ↳ Hilfe gesucht (kommerziell)
- ↳ Stammtisch
- ↳ Hungarian - Magyar
- ↳ Italian - Italiano
- ↳ Moduli/Plugins
- ↳ Lithuanian - Lietuviškai
- ↳ Darbo / bendradarbiavimo pasiūlymai ir paieška
- ↳ Persian / Farsi
- ↳ Polish - Polski
- ↳ Portuguese - Português
- ↳ Russian - русский
- ↳ Предложения и поиск РАБОТЫ
- ↳ Spanish - Español
- ↳ Swedish - Svenska
- Geekmoot Editions
- ↳ Geekmoot 2016
- ↳ Connections and Conversations
- ↳ Geekmoot 2015
- ↳ Geek Moot 2012
- ↳ Locked: Geek Moot 2010
- Old Forums
- ↳ [locked] CMSMS 2.0 Beta
- ↳ Module Developers
- ↳ Closed Issues
- ↳ [locked] Documentation0ld
- ↳ Suggestions, Modifications & Corrections
- ↳ [locked] CMSMS 1.11 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 1.10 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 2.2 Beta
- ↳ [locked] CMSMS MLE fork
- ↳ Modules/Addon patchs
- ↳ [locked] Quality Assurance
- ↳ [locked] Accessability and Usability
- ↳ [locked] Documentation
- ↳ Media and presentations about CMSMS
- ↳ [locked] Installation, Setup and Upgrade