هواشناس
شنبه 06 شهریور 1389, 11:56 صبح
بنام خدا
با سلام و عرض ادب
کد جاوایی دارم که برای تولید منو می باشد می خواستم با کمک از دیتا بیس بطور دینامیک این کد ایجاد و اجرا گرددو لی در قسمت ورود داده از asp اجرا نمی گردد
<script type="text/javascript">
var link = document.createElement('link');
link.setAttribute('href', 'localhost/Theme/theme.css');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
var head = document.getElementsByTagName('head').item(0);
head.appendChild(link);
var cmThemeMiniBlack1 = {
// main menu display attributes
mainFolderLeft: '' // HTML code to the left of the folder item
,mainFolderRight: '' // HTML code to the right of the folder item
,mainItemLeft: '' // HTML code to the left of the regular item
,mainItemRight: '' // HTML code to the right of the regular item
// sub menu display attributes
,folderLeft: '' // HTML code to the left of the folder item
,folderRight: '' // HTML code to the right of the folder item
,itemLeft: '' // HTML code to the left of the regular item
,itemRight: '' // HTML code to the right of the regular item
// spacing and delay
,mainSpacing: 0 // cell spacing for main menu
,subSpacing: 0 // cell spacing for sub menus
,delay: 100 // auto dispear time for submenus in milli-seconds
};
// splits
var cmThemeMiniBlackHSplit = [_cmNoClick, '<td colspan="3" style="height: 3px; overflow: hidden"><div class="ThemeMiniBlackMenuSplit"><\/div><\/td>'];
var cmThemeMiniBlackMainHSplit = [_cmNoClick, '<td colspan="3"><div class="ThemeMiniBlackMenuSplit"><\/div><\/td>'];
var cmThemeMiniBlackMainVSplit = [_cmNoClick, '<div class="ThemeMiniBlackMenuVSplit"><\/div>'];
var jsCookMenu1 = [ <%=str%>];
cmDraw ( 'jsCookMenuID1', jsCookMenu1, 'vbl', cmThemeMiniBlack1, 'ThemeMiniBlack' );
</script
قسمت مربوط به <%str=%> کد دلخواهی است بنابر آنچه کد اصلی دارد ولی نمتواند اجرا گردد در اصل چطور میشه در قسمت var در کد جاوا از asp استفاده کرد؟؟
با تشکر
با سلام و عرض ادب
کد جاوایی دارم که برای تولید منو می باشد می خواستم با کمک از دیتا بیس بطور دینامیک این کد ایجاد و اجرا گرددو لی در قسمت ورود داده از asp اجرا نمی گردد
<script type="text/javascript">
var link = document.createElement('link');
link.setAttribute('href', 'localhost/Theme/theme.css');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
var head = document.getElementsByTagName('head').item(0);
head.appendChild(link);
var cmThemeMiniBlack1 = {
// main menu display attributes
mainFolderLeft: '' // HTML code to the left of the folder item
,mainFolderRight: '' // HTML code to the right of the folder item
,mainItemLeft: '' // HTML code to the left of the regular item
,mainItemRight: '' // HTML code to the right of the regular item
// sub menu display attributes
,folderLeft: '' // HTML code to the left of the folder item
,folderRight: '' // HTML code to the right of the folder item
,itemLeft: '' // HTML code to the left of the regular item
,itemRight: '' // HTML code to the right of the regular item
// spacing and delay
,mainSpacing: 0 // cell spacing for main menu
,subSpacing: 0 // cell spacing for sub menus
,delay: 100 // auto dispear time for submenus in milli-seconds
};
// splits
var cmThemeMiniBlackHSplit = [_cmNoClick, '<td colspan="3" style="height: 3px; overflow: hidden"><div class="ThemeMiniBlackMenuSplit"><\/div><\/td>'];
var cmThemeMiniBlackMainHSplit = [_cmNoClick, '<td colspan="3"><div class="ThemeMiniBlackMenuSplit"><\/div><\/td>'];
var cmThemeMiniBlackMainVSplit = [_cmNoClick, '<div class="ThemeMiniBlackMenuVSplit"><\/div>'];
var jsCookMenu1 = [ <%=str%>];
cmDraw ( 'jsCookMenuID1', jsCookMenu1, 'vbl', cmThemeMiniBlack1, 'ThemeMiniBlack' );
</script
قسمت مربوط به <%str=%> کد دلخواهی است بنابر آنچه کد اصلی دارد ولی نمتواند اجرا گردد در اصل چطور میشه در قسمت var در کد جاوا از asp استفاده کرد؟؟
با تشکر