WordPress.org

Ready to get started?Download WordPress

Forums

quicktime quicktag with toolbar adjustment (2 posts)

  1. esbowman
    Member
    Posted 7 years ago #

    I've been trying for hours to get a quicktag working for embedding Quicktime movies. I have the object and embed tags working, with nice little javascript prompts for user input. That all works, but I'm having a problem that seems so simple to remedy - if you know PHP. The problem is that I can not figure out a way to have the 16 pixels added to the user input height of the movie. I basically want this to be as easy as possible for my co-workers to post client videos because they tend to forget about the 16 pixels you need to add for the height of the toolbar. Any suggestions? I tried creating a seperate variable that equaled 16 that I then tried to add to the myHeight variable but it didn't work - translated to 'I don't know my PHP'. Here's the code I'm using as of now, that doesn't work. Any help IS GREATLY APPRECIATED! THANK YOU!


    function edInsertMovie(myField) {
    var myWidth = prompt ('Enter the width of the movie', '');
    var myHeight = 16 + prompt ('Enter the height of the movie', '');
    var myValue = prompt('Enter the URL of the movie', 'media/ENTER MOVIE NAME HERE');
    if (myValue) {
    myValue = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'
    + myWidth
    + '" height="'
    + myHeight
    + '" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><PARAM name="SRC" VALUE="'
    + myValue
    + '"><PARAM name="AUTOPLAY" VALUE="false"><PARAM name="CONTROLLER" VALUE="true"><EMBED SRC="'
    + myValue
    + '" AUTOPLAY="false" width="'
    + myWidth
    + '" height="'
    + myHeight
    +'" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>';
    edInsertContent(myField, myValue);
    }
    }

  2. esbowman
    Member
    Posted 7 years ago #

    any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic