frames

How to maintain a movieclip's color between frames?

▼魔方 西西 提交于 2019-12-02 11:12:29
My app has 2 frames; in frame 1 there are 5 MC and on a DOUBLE_CLICK event the target's color change and go to the next frame 2. In frame 2 I have a button to return to frame 1. How can i maintain the MC color when I return to frame 1? public class test extends MovieClip { public function test() { var myMCTable:Array = [myMC1, myMC2, myMC3, myMC4, myMC5]; for (var i:uint = 0; i < myMCTable.length; i++) { myMCTable[i].doubleClickEnabled = true; myMCTable[i].addEventListener(MouseEvent.DOUBLE_CLICK, changeColor); } } private function changeColor(e:MouseEvent) : void { var newColorTransform

Javascript; Accessing frameset frames from within other frames

China☆狼群 提交于 2019-12-02 06:19:18
问题 I have a system in place which uses a frameset, within the frameset frames there are some calls like; top.frame1.location = "newlocation"; and top.frame2.afunction(); However I am updating the system, and now the frameset resides inside an iframe, so obviously all of the top.frame.whatever calls no longer work. Now I'm trying to find a solution which doesn't involve changing the "top." in the ton of pages that run various functions. I've tried in the top most page doing something like this;

How to retrieve HTML from Webbrowser control out of frames in .net (c#)

£可爱£侵袭症+ 提交于 2019-12-02 04:35:30
问题 I know that I can get the HTML (source code) of a Webbrowser control via: HtmlDocument htmldoc = webBrowser1.Document But this does only provide the html code of the "parent page". In case the webpage uses frames, it does not return the html code for the whole page including frames. How can I get the complete HTML code including frames - or select a single frame and get the html code of that frame? 回答1: HtmlWindow frame = webBrowser1.Document.Window.Frames[0]; string str = frame.Document.Body

Accessing a frame within a frame

和自甴很熟 提交于 2019-12-02 02:42:03
问题 Ok, here is the situation. I have a site that I subscribe to that lets you add your own code, etc. They have a forum editor that I am unable to skin to match my site, so I'd like to just change the colors of the inner most frame (doc3 in the example below). Here is the basic setup... yes, all documents are from within the same domain but I can only add code to the main document. The doc3 frame is created dynamically. The first frame has a class but no name, the second only has an id... I don

Javascript; Accessing frameset frames from within other frames

醉酒当歌 提交于 2019-12-02 02:09:21
I have a system in place which uses a frameset, within the frameset frames there are some calls like; top.frame1.location = "newlocation"; and top.frame2.afunction(); However I am updating the system, and now the frameset resides inside an iframe, so obviously all of the top.frame.whatever calls no longer work. Now I'm trying to find a solution which doesn't involve changing the "top." in the ton of pages that run various functions. I've tried in the top most page doing something like this; frame1 = $('#containerframe').contents().find('#frame1'); But that doesn't seem to work, it just says

Accessing a frame within a frame

♀尐吖头ヾ 提交于 2019-12-02 00:56:21
Ok, here is the situation. I have a site that I subscribe to that lets you add your own code, etc. They have a forum editor that I am unable to skin to match my site, so I'd like to just change the colors of the inner most frame (doc3 in the example below). Here is the basic setup... yes, all documents are from within the same domain but I can only add code to the main document. The doc3 frame is created dynamically. The first frame has a class but no name, the second only has an id... I don't know if the bind works for the inner frame, but firebug isn't giving me any errors. Oh, and I have

Why are HTML frames bad?

拜拜、爱过 提交于 2019-12-01 16:27:01
I know they are, but my co-worker doesn't believe me. He keeps telling me that Google crawls the inside content and caches it just fine. According to Google, it does crawl them, but doesn't guarantee doing it properly. Any thoughts why frames are bad for public web sites? reece There are various usability and accessibility issues with frames: link can open in the frame it is enclosed in (e.g. a side pane); can break the forward/backward navigation; difficult to bookmark; are not easily searchable (likely to see the content in Google, etc.); break on browsers like Lynx, that are console

Why are HTML frames bad?

▼魔方 西西 提交于 2019-12-01 15:57:50
问题 I know they are, but my co-worker doesn't believe me. He keeps telling me that Google crawls the inside content and caches it just fine. According to Google, it does crawl them, but doesn't guarantee doing it properly. Any thoughts why frames are bad for public web sites? 回答1: There are various usability and accessibility issues with frames: link can open in the frame it is enclosed in (e.g. a side pane); can break the forward/backward navigation; difficult to bookmark; are not easily

Can't access content of another frame in Chrome

拟墨画扇 提交于 2019-12-01 13:58:57
I have two frames. The pages in both frames come from the same domain (either localhost or a live domain - both using the same protocol). The first frame needs to access elements of the second frame (xsample) when it's fully loaded and any onload JS functions have completed. But the second frame takes a while to load. <frameset cols="*,*" rows="*" border="0" framespacing="0"> <frame src="picker.asp" name="xpicker" frameborder="no" marginwidth="15" marginheight="15"> <frame src="doc.asp" name="xsample" frameborder="no" marginwidth="15" marginheight="15"> </frameset> The code below works in IE

Can't access content of another frame in Chrome

好久不见. 提交于 2019-12-01 13:07:36
问题 I have two frames. The pages in both frames come from the same domain (either localhost or a live domain - both using the same protocol). The first frame needs to access elements of the second frame (xsample) when it's fully loaded and any onload JS functions have completed. But the second frame takes a while to load. <frameset cols="*,*" rows="*" border="0" framespacing="0"> <frame src="picker.asp" name="xpicker" frameborder="no" marginwidth="15" marginheight="15"> <frame src="doc.asp" name=