Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
XML
 <link href="css/lightbox.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<SCRIPT type=text/javascript>
        $(window).load(function() {
            $('#slider').nivoSlider({directionNavHide:false});
        });
        </SCRIPT>

<SCRIPT>
                jQuery(document).ready(function(){
                    jQuery('#holder').show();
                    jQuery('#test').simple_slider({
                        'leftID': 'leftNav',
                        'rightID': 'rightNav',
                        'display': 7
                    })
                });
            </SCRIPT>

The Above Executed...
when adding...


XML
 <script type="text/javascript" src="js/lightbox.js"></script>
  <script src="js/effects.js" type="text/javascript"></script>
  <script src="js/prototype.js" type="text/javascript"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>


The First One Not working.....

I need Both in the same form..
Posted
Comments
Sergey Alexandrovich Kryukov 9-Sep-15 3:49am    
1) Not a question; 2) not enough information.
Developers can use any number of script files, related or unrelated, on the same page. If one of your scripts is not working, it's a problem if this script, not the fact that script files are "multiple".
—SA
Arasappan 9-Sep-15 3:51am    
I wont say my script is not working..When add another script..It affect the previous script....
Sergey Alexandrovich Kryukov 9-Sep-15 4:07am    
Of course, it could affect it, by the reasons I explained before. The script below the given script can modify some objects used in the first script. I don't see all the scripts, so find it out by yourself.
—SA

1 solution

Please see my comment to the question.

Such problem simply does not exist. Developers can use any number of script files, related or unrelated, on the same page. Multiple inclusion of scripts, by URL or embedded on HTML page, is equivalent to having all JavaScript code in one script element.

So, the solution is: don't worry about "multiple", fix your script itself.

—SA
 
Share this answer
 
Comments
Arasappan 9-Sep-15 3:57am    
I fixed But not getting the output of first one...
Arasappan 9-Sep-15 3:58am    
First one is for sliding image.. another one is for Image zoom...
When add the zoom..slide is not working..
Sergey Alexandrovich Kryukov 9-Sep-15 4:07am    
No wonder. Fix the script, not just the fragment you show...
—SA
Arasappan 9-Sep-15 5:04am    
I done that also..But its nort surgey..
Sergey Alexandrovich Kryukov 9-Sep-15 9:09am    
Huh?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900