• eurekaa

    (@eurekaa)


    HI ,

    I`v created DHML menu that works fine on HTML file/url , and u can see the menu working fine on the url :

    https://imager.ws/test/test.htm

    The exact same menu I failed to install it om my WordPress header ( on header.php file in template called violator)

    I did the same steps that used on the above HTML URl with no use , the menu is not shown on my wordpress theme header.php at all ??

    The setting of the menu as following :

    1- upload the java script file ( stm31.js ) to the main folder of the theme where the index.php / header.php

    2- add the following code between the <head> </head> tags

    <script type=”text/javascript” language=”JavaScript1.2″ src=”menu.js”></script>

    3- and in the < body > to add the menu code .

    The code is :

    ——————–

    <script type=”text/javascript” language=”JavaScript1.2″>
    <!–
    stm_bm([“menu07f1″,430,””,”blank.gif”,0,””,””,0,0,250,0,20,1,0,0,””,””,0],this);
    stm_bp(“p0″,[0,4,0,0,0,1,0,0,100,””,-2,””,-2,90,0,0,”#000000″,”#CCCCCC”,””,3,1,1,”#000000″]);
    stm_ai(“p0i0″,[0,” News |”,””,””,-1,-1,0,””,”_self”,””,””,””,””,0,0,0,””,””,0,0,0,0,1,”#990000″,0,”#CCCCCC”,0,””,”fade.gif”,3,3,0,0,”#000000″,”#000000″,”#FFFFFF”,”#FFFFFF”,”9pt Arial”,”9pt Arial”,0,0]);
    stm_bpx(“p1″,”p0″,[1,4,0,0,0,1,0,0,100,”progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.62)”,5,”progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.62)”,4,48,0,0,”#000000″,”#FFFFFF”]);
    stm_aix(“p1i0″,”p0i0″,[0,” USA “,””,””,-1,-1,0,””,”_self”,””,””,””,””,0,0,0,””,””,0,0,0,0,1,”#990000″,0,”#CCCCCC”,1,””,”fade.gif”,3,3,0,0,”#CCCC00″,”#CCCC00″]);
    stm_aix(“p1i1″,”p1i0″,[0,” Africa “]);
    stm_aix(“p1i2″,”p1i0″,[0,” Americas”]);
    stm_aix(“p1i3″,”p1i0″,[0,” Asia “]);
    stm_aix(“p1i4″,”p1i0″,[0,” Asia-Pacific”]);
    stm_aix(“p1i5″,”p1i0″,[0,” Europe “]);
    stm_aix(“p1i6″,”p1i0″,[0,” Middle east”]);
    stm_ep();
    stm_aix(“p0i1″,”p0i0″,[0,” Business |”]);
    stm_bpx(“p2″,”p1”,[]);
    stm_aix(“p2i0″,”p1i0″,[0,” General “]);
    stm_aix(“p2i1″,”p1i0″,[0,” Forex News “]);
    stm_ep();
    stm_aix(“p0i2″,”p0i0″,[0,” Entertainment |”]);
    stm_bpx(“p3″,”p1”,[]);
    stm_aix(“p3i0″,”p1i0″,[0,” Celebrities “]);
    stm_aix(“p3i1″,”p1i0″,[0,” Fashion”]);
    stm_ep();
    stm_aix(“p0i3″,”p0i0″,[0,” Sports |”]);
    stm_aix(“p0i4″,”p0i0″,[0,” Health |”]);
    stm_aix(“p0i5″,”p0i0″,[0,” Science & Tech |”]);
    stm_aix(“p0i6″,”p1i0″,[0,” Miscellaneous”]);
    stm_aix(“p0i7″,”p0i0″,[0,” “]);
    stm_ep();
    stm_em();
    //–>
    </script>

    ——————

    AND THATS IT ..

    As u see the menu works properly on the HTML URL i mentioned above . but it does not work when is I set the same steps to the theme’s ( header.php ) file

    below is my header.php code ..

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
    https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php sandbox_blog_lang(); ?>>
    <head profile=”https://gmpg.org/xfn/11″&gt;
    <title>
    <?php bloginfo(‘name’); if ( is_404() ) : _e(‘ » ‘, ‘sandbox’); _e(‘Not Found’, ‘sandbox’); elseif ( is_home() ) : _e(‘ » ‘, ‘sandbox’); bloginfo(‘description’); else : wp_title(); endif; ?>
    </title>
    <meta http-equiv=”content-type” content=”<?php bloginfo(‘html_type’) ?>; charset=<?php bloginfo(‘charset’) ?>” />
    <meta name=”description” content=”<?php bloginfo(‘description’) ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’) ?>” />
    <!– Please leave for stats –>
    <meta name=”description” content=”” />
    <meta name=”keywords” content=”” />
    <meta name=”author” content=”Tri Media Solutions” />
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_url’); ?>” />
    <link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘rss2_url’) ?>” title=”<?php echo wp_specialchars(get_bloginfo(‘name’), 1) ?> <?php _e(‘Posts RSS feed’, ‘sandbox’); ?>” />
    <link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘comments_rss2_url’) ?>” title=”<?php echo wp_specialchars(get_bloginfo(‘name’), 1) ?> <?php _e(‘Comments RSS feed’, ‘sandbox’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’) ?>” />
    <!–[if lt IE 7.]><script defer type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/pngfix.js”></script><![endif]–>
    <?php wp_head() ?>
    <script language=”JavaScript” type=”text/JavaScript”>
    <!–
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName==”Netscape”)&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //–>
    </script>

    <script type=”text/javascript” language=”JavaScript1.2″ src=”stm31.js”></script>

    </head>

    <body class=”<?php sandbox_body_class() ?>”>

    <div id=”Layer1″ style=”position:absolute; left:19px; top:14px; width:382px; height:57px; z-index:1″>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
    <tr>
    <td width=”9%”><img src=”https://www.onlines.ws/img/logo.jpg&#8221; /></td>
    <td width=”91%”><div align=”left”>
    <script type=”text/javascript”><!–
    google_ad_client = “pub-3066621309378686”;
    /* onlines img 468 */
    google_ad_slot = “5698370347”;
    google_ad_width = 468;
    google_ad_height = 60;
    //–>
    </script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>
    </div></td>
    </tr>
    </table>
    </div>
    <div id=”universe” class=”hfeed”>

    <div id=”header”><div id=”header-l”><div id=”header-r”>
    <!–<h1 id=”blog-title”>/” title=”<?php bloginfo(‘name’) ?>” rel=”home”><?php bloginfo(‘name’) ?></h1>
    <div id=”blog-description”><?php bloginfo(‘description’) ?></div>–>

    <div id=”logo”>
    </div>

    <div id=”search”>
    <form id=”searchform” method=”get” action=”<?php bloginfo(‘home’) ?>”>
    <div>
    <input id=”s” name=”s” type=”text” value=”<?php echo wp_specialchars(stripslashes($_GET[‘s’]), true) ?>” tabindex=”1″ />
    <input id=”searchsubmit” name=”searchsubmit” type=”submit” value=”” tabindex=”2″ />
    </div>
    </form>
    </div>

    <div id=”menu”>

      <li id=”m-home” class=”<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>”>“><span>Home</span>
      <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>

    </div><!– #menu –>
    </div></div>

    <script type=”text/javascript” language=”JavaScript1.2″>
    <!–
    stm_bm([“menu07f1″,430,””,”blank.gif”,0,””,””,0,0,250,0,20,1,0,0,””,””,0],this);
    stm_bp(“p0″,[0,4,0,0,0,1,0,0,100,””,-2,””,-2,90,0,0,”#000000″,”#CCCCCC”,””,3,1,1,”#000000″]);
    stm_ai(“p0i0″,[0,” News |”,””,””,-1,-1,0,””,”_self”,””,””,””,””,0,0,0,””,””,0,0,0,0,1,”#990000″,0,”#CCCCCC”,0,””,”fade.gif”,3,3,0,0,”#000000″,”#000000″,”#FFFFFF”,”#FFFFFF”,”9pt Arial”,”9pt Arial”,0,0]);
    stm_bpx(“p1″,”p0″,[1,4,0,0,0,1,0,0,100,”progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.62)”,5,”progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.62)”,4,48,0,0,”#000000″,”#FFFFFF”]);
    stm_aix(“p1i0″,”p0i0″,[0,” USA “,””,””,-1,-1,0,””,”_self”,””,””,””,””,0,0,0,””,””,0,0,0,0,1,”#990000″,0,”#CCCCCC”,1,””,”fade.gif”,3,3,0,0,”#CCCC00″,”#CCCC00″]);
    stm_aix(“p1i1″,”p1i0″,[0,” Africa “]);
    stm_aix(“p1i2″,”p1i0″,[0,” Americas”]);
    stm_aix(“p1i3″,”p1i0″,[0,” Asia “]);
    stm_aix(“p1i4″,”p1i0″,[0,” Asia-Pacific”]);
    stm_aix(“p1i5″,”p1i0″,[0,” Europe “]);
    stm_aix(“p1i6″,”p1i0″,[0,” Middle east”]);
    stm_ep();
    stm_aix(“p0i1″,”p0i0″,[0,” Business |”]);
    stm_bpx(“p2″,”p1”,[]);
    stm_aix(“p2i0″,”p1i0″,[0,” General “]);
    stm_aix(“p2i1″,”p1i0″,[0,” Forex News “]);
    stm_ep();
    stm_aix(“p0i2″,”p0i0″,[0,” Entertainment |”]);
    stm_bpx(“p3″,”p1”,[]);
    stm_aix(“p3i0″,”p1i0″,[0,” Celebrities “]);
    stm_aix(“p3i1″,”p1i0″,[0,” Fashion”]);
    stm_ep();
    stm_aix(“p0i3″,”p0i0″,[0,” Sports |”]);
    stm_aix(“p0i4″,”p0i0″,[0,” Health |”]);
    stm_aix(“p0i5″,”p0i0″,[0,” Science & Tech |”]);
    stm_aix(“p0i6″,”p1i0″,[0,” Miscellaneous”]);
    stm_aix(“p0i7″,”p0i0″,[0,” “]);
    stm_ep();
    stm_em();
    //–>
    </script>

    </div><!– #header –>

    Thanks a lot in advance for help and reading my issue

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘can not add DHML menu’ is closed to new replies.