Support » Fixing WordPress » Import Javascript Problem… Err…

  • webmasteroy


    Ok I have been working with website for like 4 years now and I know HTML, CSS, PHP, Most of JavaScript. I am new to wordpress and bloging for that matter.

    I am trying to import a javascript file in the header of the template page I am using. I am using this template:

    So the javascript I am using is for a small app called openPopUps,

    So the idea is when you click a link it opens up an embedded pop-up using javascript, Now the problem is that I put the javascript import code into the header of the template I am using and I did everything else the installation file for openPopUps. But it is not working. I thing the problem is that it is not importing the javascript file.

    The popups are created using div’s and in the body tag you use onload=”hideDiv(1)” to hide those div’s from being displayed on load. Two problems the link I have to make the pop-up appear isn’t working and the div to be hidden isn’t being hidden. Here is my page:

    When you click description link on the oyhost project it should pop-up the pop-up.

    Here is the header code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <head profile="">
    	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
            <script language="JavaScript" type="text/javascript" src=""></script> 
    	<style type="text/css" media="screen">
    		@import url( <?php bloginfo('stylesheet_url'); ?> );
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        <?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php //comments_popup_script(); // off by default ?>
    	<?php wp_head(); ?>
    <body onload="hideDiv(1)">
    <div id="Div1">Hey just a test</div>
    <div id="container">
    <div id="skip">
    	<a href="#content" title="Skip to site content">Skip to content</a>
    	<a href="#search" title="Skip to search" accesskey="s">Skip to search - Accesskey = s</a>
    <hr />
    	<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    	<!-- Tag line description is off by default. Please see readme.txt or CSS(h1,tagline) for more info
    		<div class="tagline"><?php // remove bloginfo('description'); ?></div>
    	<div id="content_bg">
    	<!-- Needed for dropshadows -->
    	<div class="container_left">
    	<div class="container_right">
    	<div class="topline">
    	<!-- Start float clearing -->
    	<div class="clearfix">
    <!-- end header -->

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Import Javascript Problem… Err…’ is closed to new replies.