473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Dynamically changing DIV tag's CSS propertie

Hi,
I am having a div tag that has a SWF video player inside it. I dynamically change its position on click of a button to pop out as a absolutely positioned DIV in the center of the browser page with a high Z-Index. It works very well. But this activity refreshes that div, hence the video starts from beginning and not where it was popped out. Any method to retain the video position, not letting it reload innerHTML.

Thanks in Advance.
Dec 17 '08 #1
2 2751
pronerd
392 Expert 256MB
That sounds like an issue with the plug-in/player not your JavaScript, but we can not really say for sure since you did not post the code you are asking about.

You might try an IFrame tag instead of a div.
Dec 17 '08 #2
Hi Pronerd,
Thanks for reply,
I am pasting the code below
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('videoTd').className='popped';
  2.  
  3. document.getElementById('mapexpand').innerHTML='Collapse';
  4.  
  5. var elementVar=document.getElementById('videoTd');
  6.  
  7. Drag.init(elementVar);
  8.  
  9. elementVar.style.position='absolute';
  10.  
  11. elementVar.style.left=(document.body.offsetWidth/2)-240+"px";
  12.  
  13. elementVar.style.top=(document.body.offsetHeight/2)-175+"px";
  14.  
  15. elementVar.style.zIndex=40000;
  16.  
  17. document.getElementById("synctable").className="syncxpand";
  18.  
  19. document.getElementById('mapTd').height=document.body.offsetHeight-270+"px";
  20.  
  21. document.getElementById('map').style.height=document.body.offsetHeight-270+"px";
  22.  
  23. document.getElementById('mapleft').style.display="none";
  24.  
  25. document.getElementById('mapright').style.display="none";
  26.  
  27. document.getElementById('videoTd').borderLeft="";
  28.  
  29. zoomToFitRoute();
  30.  
  31. document.getElementById('minvideo').style.display="block"; 
  32.  
  33. document.getElementById('maxvideo').style.display="none"; 
  34.  
  35. document.getElementById('minvideo').onclick=clearVideoTd; 
  36.  
  37.  
The videoo player is inside a div tag which is inside a td of a table. I move it out to the center of the browser as a popup div having a hight zIndex.
Dec 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Randy Webb | last post by:
This page: http://www.hikksworld.com/loadJSFiles/ Is one where I was testing the ability of browsers that can/can't dynamically load a JS file with one of the three methods: 1)Changing the src...
4
by: Chris Mahoney | last post by:
Hi Currently I am setting the background image of my page by using the following code: <style type="text/css"> BODY { BACKGROUND-IMAGE: url(myimage.jpg) } </style> What I would like to do...
6
by: Test Message | last post by:
I need to dynamically add an html control to a web form. What I have, thus far, adds the control to the page, but only places it after the closing "</html>" tag. ...
5
by: Angel | last post by:
Is there a way to create an IFRAME dynamically via VB.NET. In other words creating the HTML element in the server side code? thanks in advance....
5
by: Tascien | last post by:
I was able to build an asp page dynamically depending on the question that the user answered through the online wizard... I think i can dynamically also create '.vb' or '.aspx' dynamically...
7
by: Steve_Black | last post by:
Hello, I'm toying with the idea of loading a MenuStrip (VB.Net 2005) dynamically based on who is logged into my system. Every user has different security settings and I want to customize the...
12
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
0
by: =?Utf-8?B?SlA=?= | last post by:
I’m working on a C# ASP application in which they want to give the users the ability to pic their color themes. Each theme has its own folder and the images for each theme are named the same So...
6
by: _Who | last post by:
I use the code below to change to a style sheet that has: body { ....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.