Timer

Gabriel gabriel at opensuse.org
Wed Feb 17 13:30:51 EST 2010


On Wed, Feb 17, 2010 at 3:14 PM, Victor Subervi <victorsubervi at gmail.com> wrote:
> Hi;
> I have the following css:
> <style type='text/css'>
> .splash { position:absolute; left:0px; top:0px; z-index:2 }
> .page { position:absolute; left:0px; top:0px; z-index:1 }
> .text {  font-family: Arial, Helvetica, sans-serif; font-size: 16px;
> text-decoration: none; text-align: justify}
> </style>
> and the following python:
>   if new is not None:
>     print '<div class="splash">'
>     print '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
> WIDTH="%s" HEIGHT="%s" id="myMovieName">' % (str(wn*1008), str(wn*200))
>     print '''
> <PARAM NAME=movie VALUE="GlobalSolutions.swf">
> <PARAM NAME=quality VALUE=high>
> <PARAM NAME=bgcolor VALUE=#FFFFFF>'''
>     print '<EMBED href="/support/flash/ts/documents/myFlashMovie.swf"
> quality=high bgcolor=#FFFFFF WIDTH="%s" HEIGHT="%s" NAME="myMovieName"
> ALIGN="" TYPE="application/x-shockwave-flash"
> PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' %
> (str(wn*1008), str(wn*200))
>     print '</OBJECT>'
>     print '</div>'
>     Timer(5, removeCSS, ()).start()
> Obviously, the removeCSS isn't going to work in that last line. What can I
> put there to remove the splash page after 5 seconds?
> TIA,
> beno


I don't think this has anything to do with python.

-- 
Kind Regards



More information about the Python-list mailing list