How can I expand and contract an onClick tag (toggle) size of the video by using JScript?
Every morning!
I am trying to allow the possibility to expand and communicate with the size of videos on my website using a logo rocking in the upper right of the video using css and using the 'onClick' & apply it to the function "video-large-small-toggle' to animate this.
(NB. the video appears when the user clicks on a dive, where the "display: no" css attribute)
(NB. the "home video" css attribute must adjust to the dimensions of the tag 'video-container' 100%)
Here's what I have so far;
< head >
" < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.11.3/jQuery.min.js "> < / script > .
"" < script type = "text/javascript" src = "... / scripts/change of change-region-region - script.js ' > < / scri
"" < link href = "... / styles/map region/change - region.css" rel = "stylesheet" type = "text/css" / >
< / head >
HTML
< div id = "video-container" >
"" < div class = "video-large-small-toggle" > < img src = "... / Icons/expand.png" alt = "" / > < / div >
"" < div id = "close-small" > < img src = "... / Icons/close40.png" alt = "" / > < / div >
< video width = "600px" height = "400px" autoplay class = "home-video" >
"" < source src = '... / 1920_F_88605360_O5TMQZQ9NsGNMdT4bPoHqsuEPC4W15aF_ST.mov ' type = "video/mp4" / >
< / video >
< / div >
CSS
{#vidéo-container}
border-width: 10px;
border-color: white;
border-style: solid;
cursor: pointer;
border-radius: 4px;
Width: 600px;
height: 400px;
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate (50%, 50%);
z index: 20000;
}
{} .home-video
Width: 100%;
height: 100%;
}
And Javascript
$('.video-large-small-toggle').toggle (function () {}
"use strict";
$(this) .animate ({'height': '800px'}, 100);
$(this) .animate ({'width': '1200px'}, 100);
}, function() {}
"use strict";
$(this) .animate ({'height': '400px'}, 100);
$(this) .animate ({'width': '600px'}, 100);
});
Custom player controls are much more complex than the code you have at the moment. See the tutorial below:
http://blog.teamtreehouse.com/building-custom-controls-for-HTML5-videos
Nancy O.
Tags: Dreamweaver
Similar Questions
-
How can I get rid of several frames white green clear in the video that I just imported to iMovie (9.0.4)?
I can not just delete them because this would create a rupture in the audio (I need) that will
along these blank frames. What 'stretching' the last good image while keeping the audio?
Thank you for all the ideas, your time and patience. I am new to editing.
W.W.
Have you tried to add a freeze frame to the position of the last good image?
Place the cursor in the timeline panel on the frame that you want to extend, and then ctrl-click, select 'add a free framework '. Adjust the handles to resize the fame of gel.
How can I get rid of several frames white green clear in the video that I just imported to iMovie (9.0.4)?
You use iMovie 9.0.4 or the imported movie created in iMovie 9.0.4? I don't know what version you are currently using.
-
I have 2 inch black margins on the left and right of my screen - how to remove and expand my screen
Hello
I suggest you run the fixit and see if it helps:
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-monitor-and-video-card-problemsFor more information, see this link:
http://Windows.Microsoft.com/en-us/Windows-Vista/getting-the-best-display-on-your-monitorIt will be useful.
-
How can I expand and view all my folders and their files in a single window?
I want to clean multiple copies of files and folders, etc even by striking or drag and drop existing folders.
Re structuring my work PC.
To see the hierarchy of folders, open Windows Explorer, navigate to the folder that you want to start on, hold down the SHIFT key, right-click on the name of the folder and choose command window open here. Tree type. clip and press ENTER. Open your word processing program and paste (Ctrl + V) the list to her. You can now print, edit, or save.
The switches are tree /a | clip (use of characters) and tree /f | clip (view the files in each folder).
-
How can I scan and collect documents face two pages multi with the HP 6700 doc feeder?
Hello
I have an OfficeJet 6700. I need to scan documents of several large double-sided pages and want to use the automatic charger. I see nothing in the software to be able to analyze one side of a pile of pages, return them manually, then analyze the other side, and have the pages in a single document. It seems to me that this would be a fairly routine business need and also an easy enough task for software realize (just put each page second in order - basically the opposite of manually printing on both sides) so it makes me think that I must be missing something. Can anyone help please?
Thank you very much.
Hello MN42
The 6700 Officejet does not a duplex ADF to allow you to scan a two-sided document. Copy/scanning duplex is supported only in the glass on the model.
I suggest that you are looking to buy a printer Officejet Pro (for example, the Officejet Pro 8600 N911g) If you are looking for the digitization of documents front / back, through the ADF. You can also look for third-party software that supports what you're looking for. -
I work with PDF files generated by student requiring all content in a specific range of margin. Occasional tables and figures are indented or otherwise properly spaced so that the content violates the margin requirement. In Acrobat X, I could use the selection tool to draw a selection rectangle around all text and lines of a table for example and just drag the entire table over a little to meet the requirements without referring the PDF to the author for correction. It did not always work, but quite often that I was able to use it on a daily basis.
Is it possible to select several (but not ALL) blocks of text and image on a page pieces, so they may be submitted at the same time? If I have to select each text block and lines (or each point and in a chart) and move them each individually, it's going to be a nightmare.
I have Acrobat XI for Mac and Windows, but tend to use the version of Windows more often.
People have reported what happens when preview of the output (I think) window is open. So you can close. have not heard of another fix
-
All the links on a page was taken over by ads. How can I stop and go to the linked site correct
You may have ad / bad-ware. More information can be found in the article troubleshooting Firefox problems caused by malware .
Run most or all of the listed malware scanners. Each works differently. If a single
program forget something, someone else can pick it up.Adblock more {web link}
Blocks annoying video ads on YouTube, Facebook ads, banners
and much more. Adblock Plus blocks all the annoying ads, and
supports Web sites by blocking is not discrete (configurable) default ads.Pop-up Addon Adblock more {web link}
Adblock Plus pop-up Addon - extends the functionality of blocking of the
Adblock Plus for those annoying windows pop up that opens on the mouse
clicks and other actions of the user.Forum; Homepage of Adblock Plus {web link}
-
How can I find and download "Sea Hero Quest"?
How can I find and download "Sea Hero Quest"? For my PC.
What is "Sea Hero Quest" - it does not resemble music, kind of Apple's music is not relevant here. If it's a game, which is what it sounds like, then the version in the App Store does not on anything other than iOS, or in the Mac App Store on something other than a Mac.
Looking for an Android version use the Google game store. To see if there is a PC version, you must use Google.
-
I forgot the answer to my security question, I tried to update these answers, but to update them also, I must first answers old issue of security which I forgot how can I update and change my security question and the answers
?
You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(143315)
-
My mobile android version is 4.1.2. At the present time, I can't watch and download videos from youtube. If flash player does not support any mobile by using the version of android more 4.0, how can I watch and download these flash videos?
You can always download and install Flash for Android 4.0 which still works on android versions greater than 4.0, which is located on this site (http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html), which is the own adobe site. Look for the Flash for Android 4.0 and the latest version. Although it is not advisable to use an outdated version of flash as it is not secure.
-
How can I find and add drops to my favorites in the Finder window?
How can I find and add drops to my favorites in the Finder on my MacBook Air window?
Assuming that your MacBook Air and OS X version can support AirDrop, use the menu on the Finder to go to Finder > Preferences > sidebar and tick the box 'parachuting '.
-
How can I get my menu bar on my macbook pro? The dock also disappeared. I know I have to take my pointer upwards (or downwards), but it's a waste of time and that bothers me. Its only happens on Safari, and not on other applications.
You could try starting in safe mode:
• Try safe mode if your Mac does not end commissioning - Apple Support
Which can allow additional troubleshooting.
Also, sometimes there may be a hardware problem which may help a SMC reset with
Depending on the cause:
• Reset the management system (SCM) controller on your Mac - Apple Support
You can try the test equipment to see what appears in the results:
• With the help of Apple Hardware Test - Apple Support
Other options include an appointment with a genius of Apple Store or a
service provider authorized Apple for the device inspected, diagnostic tests, etc.
There may be system software or hardware problems, in order to solve the problems with the aim
to see what the cause, can take time. If you have a backup in Time Machine &
end by using OS X Recovery to see OS X Utilities usage, disk utility or
other functions, be aware that this can make the more advanced features; It may not need.
Because this question appears as a symptom in Safari, which makes it more curious.
• Stop the pop-up ads and advertising on Safari - Apple Support
http://etrecheck.com/ http://www.adwaremedic.com/index.php
There may be a weird extension in Safari that may relate to some adware or other
elements, so this is another issue to consider. a report of Etrecheck may tell you if
some candidates are there; but maybe not. I do not primarily use Safari
so, my other two browsers work slightly differently.
Good luck & happy computing!
-
How can I copy and burn a cd? HP Pavilion g7z B7M25AV Windows
How can I copy and burn a cd? HP Pavilion g7z B7M25AV Window7
I don't see any software for it on the new PC listed in the list of programs.
Thank you
Hello
You can use this:
http://Windows.Microsoft.com/is-is/Windows7/burn-a-CD-or-DVD-in-Windows-Media-Player
or this:
http://Windows.Microsoft.com/is-is/Windows7/burn-a-CD-or-DVD-in-Windows-Explorer
Kind regards.
-
On Mac Book Pro, how can I select and delete spam with it opening?
On Mac Book Pro, how can I select and delete spam with on their opening?
Go to the junk mail folder in the Mail sidebar. Place the cursor in the message window and press command + A to select all of the messages in the window. Click on the trash in the toolbar or CTRL - RIGHT click and select the Recycle Bin on the shortcut menu.
-
How can I remove and update Apple Safari App. ?
How can I remove and update Apple Safari App. ?
You must provide much more information.
I hope that you are not really running OS X 10.4.8.
What is the problem with Safari?
By the end of 2012 mini Mac, OS X El Capitan 10.11.2; Apple Watch, 38 mm silver AL, Watch OS 2.1; iPad 2 & iPhone 6 + iOS 9.2 air
Maybe you are looking for
-
Satellite P300-PSPCCA - screen went pink
Hello I'm running the laptop model above.Used last night for a few hours and the screen went pink, I tried some restorations system nothing not helps, it is not I have checked res settings screen. A loss of what it might be, anyone got advice on fixi
-
Como puedo import contacts of una cuenta cancelada
Como puedo import contacts of una cuenta cancelada
-
How to fix error message SOS does not not free if possible?
correct the error message of sos for free if possible. my email is * address email is removed from the privacy *
-
My computer wiped clean caused by a virus. I have my email address and the code when I originally bought and downloaded Fireworks CS3. How can I download it again in my computer 'as new '?
-
Hi allAfter the upgrade of "6.0 Update 2" and try to update the disc format to version 3.0, I received the error message below.Impossible to change the route following the virtual items SAN:be4db256-0ab4-9801-c523-0cc47a3a34ca, c2bcb056-5d5f-0f02-f09