• Resolved jasotasticon

    (@jasotasticon)


    I am trying to put a swf in my wordpress template page without success. It keeps showing my alt img.

    I have used swf object correctly outside of wordpress, but when i put it in my custom install it won’t work.

    Perhaps it has to do with the java in my header temp? I did insert the appropriate code there though. Also I tried it with/without the SwfObj plugin activated.

    What am I doing wrong?

    Here is what I have:

    ——————————–
    HEADER
    ——————————–

    <?php
    /**
    * @package WordPress
    * @subpackage Classic_Theme
    */
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php wp_title(‘?’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
    <<script type=”text/javascript” src=”swfobject.js”></script>
    <script type=”text/javascript”>
    var flashvars = {};
    var params = {};
    var attributes = {};
    swfobject.embedSWF(“testo.swf”, “flashDiv”, “550”, “400”, “9.0.0”, false, flashvars, params, attributes);
    </script>

    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );
    </style>

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 1.0″ href=”<?php bloginfo(‘atom_url’); ?>” />

    <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(); ?>
    </head>

    <body>
    <div id=”rap”>

    <h1 id=”header”></h1>

    <div id=”content”>
    <!– end header –>

    ——————————–
    PAGE
    ——————————–

    <?php
    /* Template Name: studio */
    ?>

    <?php get_header(); ?>
    <?php get_sidebar(); ?>

    <div id=”flashDiv”>

    <img src=”https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&#8221; alt=”Get Adobe Flash player” />

    </div>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘swfObject and Custom WordPress install’ is closed to new replies.