Has anyone ever had problems with changing the src of an embed after
the page has loaded?.
I have had this problem 2 times now and in result have had to actually
reinitialise the embed on the page with its new src. Is there not a way
round this which will save alot less time and alot less coding.
1) When clicking on a list in an accordion, it should change the quicktime movie playing in a main window area. It works in firefox but not in safari. The variable imgTitle holds the expected output (e.g. '../images/Intro-1.mov'). It changes the src attribute of the embed tag. This change works in Firefox where the new movie plays on click. However, when clicking the list item in safari, nothing happens.
2) There is a problem in firefox as well in that the movie overlays everything else on page, even though it should be behind the text. Positioning would be tedious given that there's many nested elements and I would have to set relative positioning to the entire page.
$(".image_thumb ul li ul li").click(function(){ var imgTitle = $(this).find('a').attr("href"); var imgDesc = $(this).find('.block').html();[code].....
I have spent a very long time looking at it but I still can't figure it out. The problem is with line with <embed> tag.My purpose is to open a swf flash in a new popup window such that it must have a Pretty title name (instead of its addresss). Since opening that SWF directly does not leave me the option of change the popup title , so I use the above method...
I have a flash file that reads an xml file and writes the text on the flash.The problem I have is when the client does not have the font that I'm using.I looked on many websites and they always say you have to do the following Open the Library panel (Ctrl+L).Add a font to your library - click the options menu in the upper right corner of the panel and select New Font from the menu.In the Font Symbol Properties dialog box select the font, size and style that you want and give the font combination a name. Click OK to close the dialog box.
Right-click the font symbol in the library and select Linkage from the contextual menu.In the Linkage Properties dialog box, click the Export for ActionScript button to enable both the Identifier and AS 2.0 Class text input fields. Leave the default Identifier value and click OK to close the dialog box.Select the text tool from the Tools panel and draw a dynamic text field on the Stage.Give the text field an instance name of "my_txt". In the Font menu select the symbol name you gave the embedded font earlier. You should see a little asterisk (*) beside the name.In the Property inspector set the font size and style to match those in the Font Symbol Properties dialog box earlier.Open the Actions Panel and add the following code to Frame 1 of your Flash document:
But this only works if you create those text fields on the flash scene.In my case, I only have an action script that reads that xml file and writes the text on the file. I don't need to manually create those "dynamic" text fields.
So I've come across something which I need to find for a project which would also be very useful in general. How can I create the embed code which has the ability to be copied? I require something similar to the youtube embed code snippet, where you can click on the embed area, it highlights the content for you to copy. I've been doing some searching but can't find much as yet.
I've only started looking at RSS Feeds over past couple of days and am wondering if its possible to embed a reader in a web page. What are the basic steps required/Can it all be done through javascript ? I've searched Google but only get converter services etc.
I'm trying to find the best way to embed images into my application. However, I'm having a hard time finding the fast (browser-compatible) method. It is important that I find a reliable method because the application must be self-contained so it can be easily shared. Below is a sample of my current approach:
Code JavaScript:
var pictures = { "alert.png": new Array( new Array(-1,-1,-1,-1,-1,0,-1,1,1,1,-1,-1,-1,-1,-1,-1,-1),
[code]....
After just a few images it creates a very large javascript file. Seems like it is pretty inefficient as far as code goes.Goals of optimal approach: Must work in IE6/7 and All other modern browsers. Performance must be a high priority It will only be used for small icons Can use javascript, jquery, css, base64, or any combination.
I am trying to figure out how to use the YouTube embed code but allow the user to paste the specific url to the video he wants to show on the Flash player. I think that to make this work that I will have to either load the information into a SQL database and call it from there or have javascript write the entire embed code with the value video1 as the source but I don't have very much experience with either.
I have some code that hides all Flash objects on a page. It's working fine on IE and Gecko but doesn't work on Safari. There are no errors (shown in the console) when it runs on Safari, and when I alert the properties they do show the correctly changed status, but the screen doesn't reflect that. It maybe a bug in the Flash player for Safari (I'm using player 9.0) which is just ignoring that it's been hidden. Here is the Firefox/Safari part of my logic:
If I alert the visibility beforehand, it's set to "visible" and afterwards it's set to "hidden", so clearly the code is doing what's asked of it, but still the Flash continues to persist on-screen. I tried a browser resize (with the mouse manually) and it still remained, so it wasn't just a bad rendering issue. The Flash remains there and remains animating and interactive. I've considered resizing it to zero x zero but that may have page alignment issues if that embed was filling a hole.
Ideas anyone? That code above works on all non-IE browsers I've tried it on. The IE version of course looks through the objects array and checks the classid but when it comes to hiding, does the same thing.
GOAL: My end goal is to send a web page (single file) as an attachment (not embedded) via email to any of the main email clients (Eudora, Outlook, etc). Users see a single web page attachment and either double click or "view in browser" in order to view it. (It is an attachment after all).... When they DO open Internet Explorer (is all I need, not netscape), a single image appears with some appended text.
CHALLENGE: My challenge is: I don't believe I can send more than one file via email because of the potential renaming of currently-existing files (i.e. the image gets renamed and the webpage points to an older picture, because the web page was certainly not updated). Also, some email clients, like Eudora, like to attach the whole path name of an attachment as the file name (so that C: empabc.jpg becomes CTEMPABC.JPG and the web page no longer knows what to point to depending upon the email clients).
METHOD OF OPERATION: So I thought, perhaps there's a way to embed the image DATA into the html itself and on "onLoad" or some other method, save the temp file (whatever.jpg) and rewrite the html to point to the IMG file.
THE QUESTION: How can I do that? (or another way to accomplish the same).
REQUIREMENTS: Internet Explorer 5 or 5.5 and better, as I use a plugin which requires IE, not an email client's internal browser, and *not* netscape. Windows 98se or better.
I cannot for the life of me get our menu to appear ABOVE tubepress embed. I have changed teh z-index of virtually every possible container in our menu to no success. Can anyone with Firebug find what class I am missing to add the z-index on?
I'm not using any framework so I'm not looking for any jquery shorthand. I just need to change the youtube video with a click.
Code: <script type="text/javascript"> function changeVideo(vidSrc){ var link = vidSrc.href + "?version=3&hl=en_US&rel=0"; var movie = document.getElementById('embeddedMovie'); movie.setAttribute("src", link); alert('SRC: ' + document.getElementById('embeddedMovie').src); return false; }
The alert shows that the source is changing however the page just goes blank and the src is not updated in the markup. I also tried updating the parameter along with the movie but still no luck. Does the same on all browsers. If I use the same technique for images it works so I don't believe it to be any DOM loading issue.
Im new to JS. Im having a problem with special character (im from Denmark where we useWhen embeded the text doesnt include the special characters. I know why but I dont know how to resolve it.My HTML looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
I want to be able to display an embedded video on a web page but i want the URL to be different based on the source IP visting the web page.Can this be done in javascript?Example: If someone from inside our network (one IP address on the outside) visits our external web page (hosted externally) visits a web page with one of the embedded videos the URL and code will serve up a locally hosted video. (WMV format)
<object id="alerttest" name="alerttest" data="alert.txt" type="text/plain" width="100" height="100">I am here!</object>
Well it seems that when I do document.getElementById("alerttest").innerHTML; my result is "I am here!" thought I need the contents of the text file. How would I get the contents of the text file ?
I want to include a link in the alert method.I tried this
alert("Please enable your java to experience this enhanced page." + '<a href="http://www.java.com/en/download/index.jsp" target="_blank">Free Download Java</a>');
But this will not made a link it shows all as it is. How can i made a link in alert.