The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Video not resize with widget

Go down

Video not resize with widget

Post by TheShaka on May 16th 2014, 10:42 am



Last edited by TheShaka on May 16th 2014, 11:34 am; edited 1 time in total
avatar
TheShaka
Forumember

Male Posts : 413
Reputation : 6
Language : polish

http://seiya.forumotion.com

Back to top Go down

Re: Video not resize with widget

Post by Pizza Boi on May 16th 2014, 10:46 am

Hi Very Happy

Hmm... you can probably add something like:

Code:
width="#" height="#"

In the video link you used to host it up with. Can you give out the precise code for it?

Regards,
Pizza Boi
avatar
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Re: Video not resize with widget

Post by TheShaka on May 16th 2014, 11:28 am

I know i can add size but every one have another ecran size so is better to resize the video with widget

Code:
<object style="visibility: visible; background: none repeat scroll 0% 0% rgb(0, 0, 0);" id="videojobs" data="http://www.wanmei.com/public/swf/player_v2.swf" name="videojobs" type="application/x-shockwave-flash" height="364" width="754"><param value="true" name="allowfullscreen"><param value="opaque" name="wmode"><param value="always" name="allowscriptaccess"><param value="0x000000" name="bgcolor"><param value="__objectID=videojobs&amp;__url=http://seiya.wanmei.com/&amp;source=http://seiya.dl.wanmei.com/seiya/patch/cover0515-2.flv&amp;autoPlay=false&amp;repeat=true&amp;scaleMode=proportionalOutside&amp;group=null&amp;skinMode=hide&amp;configPath=http://www.wanmei.com/public/swf/player_config.xml" name="flashvars"></object>
avatar
TheShaka
Forumember

Male Posts : 413
Reputation : 6
Language : polish

http://seiya.forumotion.com

Back to top Go down

Re: Video not resize with widget

Post by Pizza Boi on May 16th 2014, 3:26 pm

Hi Very Happy

Hmm... that would be a bit of a problem. I'm not sure if you can even re-size the widget but I'll look at it.

Edit: Try this one please -

Code:
<script type="text/javascript">
        jQuery(document).ready(function(){
       
      jQuery("#pizza").click(function(){
        var a=Number(document.getElementById("boi").value);
        var b=0;
        jQuery("#right").animate({width:a},180, "linear");
        if(a==180){b=1;}
        if(a==300){b=2;}
        if(a==350){b=3;}
        if(a==400){b=4;}
        if(a==500){b=5;}
        if(a==600){b=6;}
        if(a==700){b=7;}
          });
        });
        </script>
<center>
   
   <div style="text-align: center;"><input type="submit" value="Set" id="pizza" /><select id="boi">
          <option selected="selected">180</option>
          <option>300</option>
          <option>350</option>
          <option>400</option>
          <option>500</option>
          <option>600</option>
          <option>700</option>
        </select>
   </div>
   
</center>

If that doesn't work, can you link me to your forum? The code I wrote above should work for widgets. Also, change #right to #left depending on your widget position.

Regards,
Pizza Boi
avatar
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum