You are here: Re: I give up! « HTML « IT news, forums, messages
Re: I give up!

Posted by Pascal Herczog on 11/18/95 11:31

"bernhard" <b.plugge@plugge-informatik.de> wrote in message
news:1131402127.086557.230320@g49g2000cwa.googlegroups.com...
>
> Pascal Herczog schrieb:
>
>> I have an html page divided into 2 frames. The left side contains a table
>> with a series of hyperlinks to select different movie files to be played
>> in
>> the right hand frame. Now, I could do it the easy (boring!) way, and make
>> each link call a unique html file that contains the exact same embedded
>> object definition for the media player, but each with a unique
>>
>> <param name='fileName' value="Filename1.mpg">
>>
>> entry to play the correct movie file.
>>
>> However, it seems to me that, given that it is possible to call this url
>> with some parameters attached, I must surely be able to create a generic
>> movieplayer.htm file that uses the ?name=Filename1.mpg parameter to
>> assign
>> it as the name of the file to be played.
>>
>> So, my table url would be <a
>> href="movieplayer.htm?name=Filename1.mpg">Filename1</a>
>
> This must be done using server side scripting. Check if you can use php
> on your server. it takes less than 10 lines of php code to solve your
> prob.

Hmmm - I've actually now got part of it working, so I'm gonna stick with
Javascript for now.

I found that by adding a function that actually returns the value asked for
(duh!), I can get my text to contain the url parameter value. So I used

function qsVal(key) {
return qsParm[key];
}
.... and the previous function posted...

and in the body part,

<script language="javascript" type="text/javascript">
document.write(qsVal('1'));
</script>

nicely in the middle of the text describing the hyperlink.

Only thing is, I can't seem to get this assigned within the <param... bit of
my embedded object.

I'm trying to use

<param name='fileName' value='javascript:qsVal(0)'>

But I can't see why it's not doing anything. Any further help much
appreciated.

Pascal.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация