General Community > Off-Topic
Problems interacting with javascript
Availor:
Nope, sorry still doesn't work :-(
I've attached the file of the template in case anyone is interested in looking further into it. Jquery tools are very effecient for complex websites.
[gelöscht durch Administrator]
Ruud:
Sorry it took so long ;-)
Replace the script part in your index.php to this:
--- Code: ---<script language="javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery("#myController").jFlow({
slides: "#mySlides",
width: "580px",
height: "200px",
duration: 400
});
});
</script>
--- End code ---
That worked for me.
Ruud
Availor:
--- Quote ---Sorry it took so long wink
--- End quote ---
LOL you're helping in your free time
Thanks a lot it works! :-D So basically if you can explain what you did - if I want to implement another script like top sliding panel, you just added this line "jQuery.noConflict();" ?
P.S. I'm making a bundle of ready-to use scripts and menus so people can download them and just copy&paste in their site.
Will post a link - should finish it within the next hour or so...
Ruud:
(I'm my own boss, I don't have free time)
It wasn't just the noConflict.
the "jQuery(document).ready(function(" line originally started with $(document).....
This line says something like "If the page and the script engine (DOM) is ready then you can go on.
prototype.js (and maybe others too) are doing the same thing.
It will always stay problematic to include multiple scripts in one page. Especially these very nice and unreadable we-can-do-everything scripts.
Ruud
Availor:
It is very strange.
In here it works perfectly fine (http://www.websitebakerden.com/demo/portal/) There are three more scripts (scrolling news, dhtml menu, tabs)
In here it does not work http://www.websitebakerden.com/pages/modules/spry-widgets.php - I removed the imageflow module. These all are spry widgets used by dreamweaver they are exactly the same... Anyway I see there is a long way ahead to make everything perfect :mrgreen:
Navigation
[0] Message Index
[*] Previous page
Go to full version