HTML - Help With Swaping Out Swf File
Using a third party tool I have created a bunch of 360 panoramic files that are compiled as SWFs.
Here's the code to run one of them: Code: <script type="text/javascript" src="p2q_embed_object.js"></script> <script id="TourView" name="TourView" type="text/javascript"> <!-- if ((window.p2q_Version) && (window.p2q_Version>=2.0)) { // Check to see if the version meets the requirements for playback var flashvars=""; p2q_EmbedFlash('test.swf','350','220','allowFullScreen','true','FlashVars',flashvars); } //--> </script> I'm trying to find a way, via links, to change the SWF. Right now the script is in a cell in a table. If I use DIV or something else can I re-execute the script with a different SWF file? Right now if re-execute the script it just wipes the page and I get nothing but the new SWF. Any help would be greatly appreciated! Similar TutorialsI'm about to rip my hair out on this one. I'm using Dreamweaver 8. I have navigation that is using image rollovers to swap. My images that are needed for the rollover to work are in my "assets" folder in the "root" directory. However, when I create the actual html page off the template it is looking for the image in "templates/assets" and therefore does not find the image to swap. I have a number of different navigation buttons and I inserted them all the exact same way. This is the only one that is having this issue, the rest work properly. This is the code that resides on the templates page. Code: <p class="navimage"> <a href="../logset.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Log & Grate Set','','..assets/menu/log_over.jpg'',1)"><img src="../assets/menu/log_default.jpg" alt="Log & Grate Set" name="Log & Grate Set" width="158" height="34" border="0" id="Log & Grate Set" /></a></p> Notice the Set','','..assets/menu/log_over.jpg. This is the code that is produced when you create an html page from the template. Code: <a href="logset.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Log & Grate Set',Templates/'','..assets/menu/log_over.jpg'',1 For some reason it is adding the directory templates, and therefore does not find the image. Does anyone know how I can fix this? Thanks, braves07 The following common code is not working in Firefox (3.0.11). It works in Safari (4.02) and IE7. When I say not working, I mean that when I click the submit button, the address does not change to the form processing url: Code: <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="mp3file" type="file" /> <input type="submit" name="submit" value="Send File" /> </form> The file uploader.php does nothing, it is blank, I'm merely trying to establish communication. Once again, the code functions in IE and Safari so I dont think this is PHP related. I have a project written in ASP.NET under Visual Studio 2005 with C#. I am also using Infragistics objects for .NET Advantage 2007. In my page to attach resources to a record I have written a browser and am displaying previously chosen resources here. But when I click the upload button the page opens a new window (which is not a dialog window, but a normal one) which is exactly the same as my dialog window. How can this possibly happen? Can anyone help me? Hi, Anybody have any idea how to convert a xml file to excel file.Actually i m working on visual studio and using C programming language.I have a xml file in the same directory where my programm is running.When i pressed a icon it will take the xml file automatically and convert to a excel file and show the outpt to the user.How can i achive this goal ??? Any help would be great. Thanks, Basanta Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. hi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... Hi guys I want to add some php files into my frontpage html files, please let me know how to do this. I tried many things but fail. Please guide me. Thank you GCS Hi, I'm trying to include one HTML file in another. I tried iframe and was displeased with the results, I want the size of the frame to change dynamically and not just scroll. Fair warning, my knowledge of JavaScript is non-existent >_> . Basically, I have a document written in HTML (please don't suggest a wholesale re-write, that's simply not practical) and the idea is to have one file where it makes sense to include it several times. One thing to mention, this document is not meant to be shown on a web-server, but in a browser while you're reading it off your hard-drive. Here's what I have so far. main.shtml Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title> </head> <body> <center> <h1> This is only a test! </h1> </center> <p> Still testing!!!!! </p> <!-- #include file="included.html" --> <p> Even more testing!!!!! </p> </body> </html> included.html Code: <!--<html> <head> <title> asdfasdfasdfasd </title> </head> <body>--> <p> <h4> foobar </h4> <br> <br> <br> <br> <h4> boofar </h4> </p> <!--</body> </html>--> Not sure what I'm doing wrong, help appreciated! hi everyone! how can i upload a pdf file via html? i guess "a href" is not the right way. please help me. thank you Hi All I need some help with the following html coding: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- MagicComment: MVTimeout --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untangle Login</title> <script type="text/javascript">if (top.location!=location) top.location.href=document.location.href;</script> <style type="text/css"> /* <![CDATA[ */ @import url(/images/base.css); /* ]]> */ </style> </head> <body> <div id="main" style="width: 500px; margin: 50px auto 0 auto;"> <div class="main-top-left"></div><div class="main-top-right"></div><div class="main-mid-left"><div class="main-mid-right"><div class="main-mid"> <!-- Content Start --> <center> <img alt="" src="/images/BrandingLogo.gif" /><br /> <b></b><br/> Untangle Login <div style="margin: 0 auto; width: 250px; padding: 40px 0 5px;"> <form method="post" action= "/auth/login?url=/setup/welcome.do&realm=Administrator" > <table><tbody> <tr><td style="text-align:right">Server:</td><td><em> localhost</em></td></tr> <tr><td style="text-align:right">Username:</td><td><input id="username" type="text" name="username" value="admin"/></td></tr> <tr><td style="text-align:right">Password:</td><td><input id="password" type="password" name="password" /></td></tr> </tbody></table> <br /> <div style="text-align: center;"><button value="login" type="submit">Login</button></div> </form> <script type="text/javascript">document.getElementById('password').focus();</script> </div> </center> <!-- Content End --> </div></div></div><div class="main-bot-left"></div><div class="main-bot-right"></div> <!-- Box End --> </div> </body> </html> What I need to know is how can I change the title. I cant seem to find the file contaning the html coding that i posted above. the way i found this coding was 'right clicked the web page and clicked on view source' The code that I marked in red seems to be the "file"(welcome.do) that contains this code, but i cant seem to find the file. Please, any help will be appreciated Best regards I'm having some trouble that I've never encountered before... I'm trying to get a ".jpg" file that's being loaded from a FTP server to load up on a ".php" file. It all works when I do it locally, but when I try to open it up on the server itself, all the images (".gif"'s) open up perfectly yet the ".jpg" doesn't. Any suggestions? Thanks! i was wondering is it possible to download a wav file to the temporary internet files without it showing any download screen or allow it to download screen I cant open my php file...ive downloaded wampserver to support the file but it still doesnt open...wat could b the problem here??? hi, all!! i have been searching for two days for a certain type of file tree/faq menu script. i don't know quite what to call it, and that is probably why i can't find anything!! okay, what i want is a basic file tree. ie: +general info +category 1 +category 2 and when you click on one of those categories, it looks something like: +general info -category 1 +topic 1 +topic 2 +topic 3 +category 2 and when you click on one of those categories, it looks something like: +general info -category 1 -topic 1 this is the information about topic one. ideally, it will appear when you click on topic one and disappear when you click on topic one. when topic one is originally clicked, its + will turn to a - . When topic 1 is clicked a second time to hide the text, its - will turn to a +. +topic 2 +topic 3 +category 2 i cannot use a database for this. i have been looking for html / javascript i hope this makes sense... thanks in advance! erin I'm using this flash player on my site http://www.macloo.com/examples/audio_player/ I'd like to hide the soundFile url so that people can't just view the page source and copy the location of the mp3. Any ideas? I was hoping there'd be something I could do with some php variables or something, but I haven't really come up with a solution that would actually work. How do I go about converting an .htm file into a .rar? Or can you do that? Hey all, My second question from the 'could be done another, easier way, but I want to do it like this' pile (I am really trying to avoid PHP..) At the moment I have created a basic website (just for funsies, and a little bit of learning) using CSS and such - nothing too complicated. I had a bit of a look around and found a basic script that would allow me to username / password protect the site, though I noticed that the username / password was stored in the HTML itself, so it sort of makes it useless. This got me thinking about more secure ways to do it, and I thought that if I could store the username / password combinations in a CSV file, and then check through that list on submit, that would be ok? So, firstly, is it possible to do it like this? Secondly, how would I go about doing it? I am probably in way over my head, but I will never know if I never try! Thanks in advance. ~J Hi: I would like the senior folks of my mobile home Park to be able to download a .pdf telephone directory file of our 600 home Park. I have created the file, and I'll be placing it on my Apache Server -- probably in my '..\images\' directory. Question: Would someone please give me an example of the html code needed to download a file of this type ? Thank you. -Mel could some one please tell how to upload a file without using the submit button. Iknow the location of the file and i want to upload the file into the server |