天道酬勤,学无止境

opera

HTML5 video MEDIA_ERR_DECODE occurs randomly

Question I'm developing the project witch contains 6 audio and video elements which plays one after another. The code order before issue is like that: preloading all media resources till "canplaythrough" playing video-1 stoping video-1 and playing audio-1 stoping audio-1 and playing video-1 again. Then the video-1 is playing 2-3 seconds and stops sending the error code 3 (3 = MEDIA_ERR_DECODE - error occurred when decoding). I have tried to play the same video just by link and it is playing fine. Also the problem randomly occurs on some OS in some browsers. For example: Win10 latest Opera -

2022-05-14 22:11:04    分类:技术分享    javascript   html   video   decode   opera

Is there user-select for Opera 10.62 and IE9?

Question I have been trying to apply user-select for both Opera 10.62 and IE9 without success. I can't/won't bind events with JavaScript that preventDefault(), because there are so many places to be set unselectable and I still need to retain selections in several places. In fact, I want the default behavior to be unselectable for the whole document, and as for that I have set the following in my stylesheet: * { -o-user-select: none; -webkit-user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -ms-user-select: none; user-select: none; } Everything works great with Firefox

2022-05-14 19:39:15    分类:技术分享    css   internet-explorer   opera

Opera - driver.WindowHandles returns wrong count

Question In my scenario, I'm verifying whether clicking on a link navigates to another page (verifying for the page title). IE, FF and chrome return 2 as expected but Opera returns 4. I didn't have any other Opera instances opened at the time of running tests. It clicks on the link and required page is opened but WindowHandles returns 4. Code: string BaseWindow = Drivers._driverInstance.CurrentWindowHandle; Drivers._driverInstance.SwitchTo().Frame(Drivers._driverInstance.FindElement(By.ClassName("iframe-fix"))); if (Drivers._driverInstance.GetType().Name.ToString() == "InternetExplorerDriver")

2022-05-13 10:18:22    分类:技术分享    c#   selenium   selenium-webdriver   opera

My Navigation Bar CSS is overwriting my other links CSS on Opera

Question The way I have styled my navigation bar follows as: nav a:link,a:visited { display:block; width: 125px; color:#000000; background-color:#FFFFFF; text-decoration:none; font-family: Arial,Helvetica,sans-serif; font-variant:small-caps; padding: 5px; font-size: 18px; } The rest of my links are styled as this: footer a:link { color:#7A7A7A; } footer a:visited { color:#7A7A7A; } footer a:hover { color:#383838; } footer a:active { color:#000000; } The problem is that Opera cannot recognize the #nav or #footer before the a:link,a:visited and as such, every link on my page looks like the

2022-05-05 11:13:08    分类:技术分享    css   opera

Pause script execution on opera dragonfly

Question In Chrome dev tools we can use the 'Pause' icon on the bottom row of the interface to break on all exceptions. So when our web page is running, we can break it suddenly without adding breakpoint and know where the script stop. Can we do that in opera dragonfly? Thanks. Answer1 There's a "Show parse errors and break on exceptions" toggle (immediately left of the drop-down selecting what script to show currently).

2022-05-03 22:11:05    分类:技术分享    opera   pausing-execution   opera-dragonfly

How to remove button outline in Opera on focus

Question Does anybody know how to remove the dotted outline on buttons in Opera? Answer1 I have done it. Here you go: http://jsbin.com/oniva4. [tested on Opera 10.5/11] The secret is using outline-offset:-2px; (effectively covering the dots) and the background's color for the outline. outline-offset is supported since version 9.5. Answer2 The introduction of the article Do not lose your focus For many web designers, accessibility conjures up images of blind users with screenreaders, and the difficulties in making sites accessible to this particular audience. Of course, accessibility covers a

2022-04-24 13:31:12    分类:技术分享    html   css   button   opera   outline

Monitor web sites visited using Internet Explorer, Opera, Chrome, Firefox and Safari in Python

Question I am working on a project for work and have seemed to run into a small problem. The project is a similar program to Web Nanny, but branded to my client's company. It will have features such as website blocking by URL, keyword and web activity logs. I would also need it to be able to "pause" downloads until an acceptable username and password is entered. I found a script to monitor the URL visited in Internet Explorer (shown below), but it seems to slow the browser down considerably. I have not found any support or ideas onhow to implement this in other browsers. So, my questions are

2022-04-20 19:37:04    分类:技术分享    python   internet-explorer   safari   google-chrome   opera

If Chrome, use WebP

Question Because currently only Chrome and Opera supports WebP, I was wondering if I could target those two particular browsers and redirect them to fetch another version of my website so I can help optimize my site downloading speed more faster? Thanks. Answer1 I solved this problem like this: Check if the client advertises "image/webp" in Accept header If WebP is supported, check if the local WebP file is on disk, and serve it If server is configured as proxy, append a "WebP: true" header and forward to backend Append "Vary: Accept" if a WebP asset is served in Nginx: location / { if ($http

2022-04-18 07:28:09    分类:技术分享    performance   google-chrome   optimization   opera   webp

IE/Firefox/Opera not picking up stylesheet - Webkit okay

Question I'm doing a website for a client and for some strange reason when loading the page in IE/Firefox/Opera, the stylesheet doesn't load properly. When loading the site in WebKit (Chrome, Safari, Mobile Chrome, Mobile Safari) the page loads fine. I've check that the doctype is fine, the links don't have any typos, they all link up correctly in the source. I cant for the life of me figure out why it doesn't work! Please help! http://almostinspired.net and http://almostinspired.net/wp-content/themes/almostinspired/style.css Answer1 What's happening is that your CSS file is, in fact, being

2022-04-18 05:09:20    分类:技术分享    css   internet-explorer   firefox   opera

javascript not working in OPERA

Question This javascript works in Firefox, IE, Chrome but Not in Opera. How to make it cross browser compatible? I need script to detect click on iframe. <script> var isOverIFrame = false; function processMouseOut() { isOverIFrame = false; top.focus(); } function processMouseOver() { isOverIFrame = true; } function processIFrameClick() { if(isOverIFrame) { //was clicked } } function init() { var element = document.getElementsByTagName("iframe"); for (var i=0; i<element.length; i++) { element[i].onmouseover = processMouseOver; element[i].onmouseout = processMouseOut; } if (typeof window

2022-04-18 01:34:04    分类:技术分享    javascript   opera