HTML - How To Change Properties Of An Object?
i want to change this object (player) properties
PHP Code: <center> <object id="Player"> <param name="URL" value="www.site.com/media.avi" ref> <param name="fullScreen" value="1"> </object> i know there is a way to do this for example PHP Code: <a onclick="if (Player.playState == 3)Player.fullScreen = '1';"> to change the fullscreen mode but i need to change the URL value Similar TutorialsHello, I am wondering if something is possible.. and if it is, how I would go about accomplishing the desired result.. This is a sample page to illustrate the problem http://comp.uark.edu/~bcagnin/test/index.html Is there a way to resize the object from a link that is within the website being displayed in that very same object?? Also, I am willing to use iframe if there is a solution that can be found with that... Thanks!! Tyrick Hello experts, I have a code like this Code: <form method="POST" action="/irj/portal?NavigationTarget=ROLES:...CourseRegistration" onsubmit = "top.location.href=this.action"> <input type="image" src="http:..register.gif" alt="Submit button"> </form> This works fine. I need the same functionality for a URL! How should I do this. I tried Code: <a href="/irj/portal?NavigationTarget=ROLES:....course_desc" onsubmit = "top.location.href=this.action">Course Descriptions</a> This does not work like the button above. Any ideas are appreciated. Thanks Srinivas When using <a href="" target="_blank"> is there a way to specify the size and title of the new browser window? Is there a way to get rid of the browsing buttons as well so it's just a pop-up window...? Or is there another HTML way to do this? Hey guys, I'm working on this site now I'm stuck. Its been a while since the last time I made one. Hoping you guys can help me. Could definitely use it. Thank You. Okay, so basically what I am trying to do but can't is get my random images to open like I set up my first image. Which would be in a new window as specified by my code. The first images join.png and button.png open how I want them to, It's just the random images I have that won't open. Hopefully you guys can guide me in the right direction. Thank You. Code: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>test</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);} </script> </head> <body> <center> <p><img src="images/Banner.png" width="484" height="86" /></p> <p><a href="blahh.php" onclick="NewWindow(this.href,'mywin','800','500','no','center');return false" onfocus="this.blur()"><img src="images/button.png"/><a href="blah.php" onclick="NewWindow(this.href,'mywin','800','500','no','center');return false" onfocus="this.blur()"><img src="images/join.png"/> </p> <script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() //specifies random images myimages[1]="images/m_cfb7815dc1124a19afd0200898f1ea38.jpg" myimages[2]="images/example.jpg" //specify corresponding links to images var imagelinks=new Array() imagelinks[1]="http://www.example.com" imagelinks[2]="http://www.example.net" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a target="_blank" href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" height="90" width="90" border=0></a>') // specifies link } random_imglink() //--> </script> </center> </body> </html> Can i assign a URL like index.php?page=result using the get method in a php form. Ex: HTML Code: <form action="?page=results" method="get"> <input type="submit" value="Submit"> </form> Hi guys, i tried looking for help on tihs issue but could not find any. the problem is this: I have an image that is viewed in landscape. i want to make this printable, but when i print it, half of this landscape image is printed in portrait mode. is there any way i can set the print properties so that when the user goes to File>Print it will show the normal print options, and actually print in landscape? Thanks. GrampsEd here ?#1 Can I think or look at a Table and a menuh-container as the same thing but used for different things where the ( menuh= the text or links ) the ( Tr=Lu ) and the ( Td=LI ) if so. ?#2 Where can I find all of the properties I can use for the ( menuh Li ) tag in the CSS part. or can I just put properties in the ( LI tag ) just like you do in the ( TD tag ) in the html body part of the page. Also please tell me if I need to ask ?? in a different forum. Thanks I am using another persons code for our band's MySpace.( With some of my own) I am trying to display the shows section and the music player. When i insert the shows section the music player always displays behind the shows section. It is displaying the music player within the limits of the shows section. How do i make the music player seperate? Here is the code for the entire site with the music and show sections bolded. Code: <i class=i>!--START CODE IN BAND MEMBERS --!</i> <i class=i> !-Start Div Overlay Content Block-! <a href="http://www.msplinks.com/MDFodHRwOi8vdmlld3MtdW5kZXItY29uc3RydWN0aW9uLmJsb2dzcG90LmNvbS8="> myspace code tutorials by Eileen</a> !-Close 3 layers of cell/row/table. This puts our Div ONE table deep. </i> </td></tr></table> </td></tr></table> </td></tr></table> <i class=i>!-Create and size our div. We will never close this div. It will close when the containing table closes-! </i> <i class=i>!!! MODIFY width to the SAME width as your core image !!!</i> <div class="myCoreDiv" style="position:relative; top:0px; width:799px; height:auto; border:2px green solid;"> <i class=i> when DONE editing CHANGE the border:2px to border:0px or change the magenta to the color you want your border.----!</i> <i class=i> !----START CUSTOM CONTENT BLOCK 1----!</i> <img src=http://i42.tinypic.com/16iz2j5.jpg> <img class="grid" src="http://i11.tinypic.com/4pczehk.gif" style="position:absolute; top:0px; left:0px;"> <span class="off">!-START COMMENT FORM-!</span> <div class="myCommentFormD"> <form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"> <input name="friendID" value="445328869" type="hidden"/> <textarea name="f_comments" class="myFormBox"></textarea> <center> <input type="submit" value="Post Comment" class="myPostCommentButton"/> <input type="reset" value="Clear" class="myClearButton"/> </center> </form> </div> <span class="off">!-END COMMENT FORM-!</span> <i class=i> !----END CUSTOM CONTENT BLOCK 1----!</i> <i class=i>!-Open 3 layers of table/row/cell-!</i> <i class=i>!-IF do NOT want any content from my Right side, I can use i instead of L1-!</i> <table class="L1" ><tr><td> <i class=i>!-The below class i hides the remainder of the general table-!</i> <table class="i"><tr><td> <table class="i"><tr><td> <style>.i {display:none}</style> <i class=i>END CODE IN BAND MEMBERS</i> <i class=i>!START code in Influences !</i> <i class=i>!START Style Block For Hiding Elements on Band Page! <a href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9iYW5kLWhpZGUtYWxs">MySpace Band Hide Everything</a> </i> <style> .i, div.clearfix i i i {display:none} {! fix a centering problem, and clear white space caused by clear gifs !} td {width:auto;} table td img {display:none;} {! restore any images displayed inside our div. You may want to use block instead of inline for some images. !} table td div.myCoreDiv img, table td div.myCoreDiv table td img, table td div.myCoreDiv div img {display:inline;} {!OPTIONAL restore image on maroon nav bar, we could use a.navbar img!} div table td a.navbar img {display:block;} {! removes most content and the space it occupied !} table table table {display:none} {! minimize the remaining main page content that can not be removed without effecting the ad and menus !} table table td { height:0px; margin:0px; padding:0px;} {! restore my div. !} table div.myCoreDiv {display:block;} {! restore div with Comments !} table div.myCoreDiv div.myDclassFC {display:block;} table div.myCoreDiv div {display:block;} table table br {display:none;} table table table br {display:block;} {! OPTIONAL decrease space between bottom and bottom menu, and between bottom menu and cc thing !} {! does not work in Safari !} table div br {line-height:4px;} {! reverse effect on custom div !} table div.myCoreDiv br {line-height:11px;} {! remove default background coloring !} table table, tr, td {background-color:transparent !important} {! ONLY if you want to remove the blue behind the ad banner AND the maroon !} div.profileWidth table, div.profileWidth td {background-color:transparent !important} div table {border-bottom:none !important;} {! ADDITIONAL STYLE BLOCKS CAN GO HERE !} <style> {!- shows -!} table table td.text div {position:absolute; width:440px; height:130px; overflow:scroll; overflow-x:hidden; top:30px; left:415px;} {!- UnDo effect on Div in Friend and Comment spaces -!} table table td.text table div {position:static; height:auto; overflow:hidden} table table td.text div.commentlinks {display:none;} table table td.text div table {display:block} {!-fix column width of shows-!} {!-set below px width to the width of your shows space-!} table table td.text div table td, table table td.text div table {width:425px;} table table td.text div table table {width:100% !important} {!-adjust below value as needed-!} table table td.text div table table table {width:40% !important} </style> <style> {!-music player-!} table table td.text div object {position:absolute !important; top:196px !important; left:100px} table table td.text div object object {position:static !important;} </style> hi; i want to create something like this http://www.microsoft.com/en/us/default.aspx need to do exactly as in this site how can i do that.... ; any script (when mouse is over needs to change the iframe....) Highlights Latest releases Using your computer Here's the link to my test web page with a short slideshow embedded in it. http://www.prestigekitchensandbaths.com/test/index.html The slideshow movie is in FLV format, and it works fine in FF, Opera and Safari. Funny thing is that it works fine in IE when I test it on my desktop (Windows XP), but it won't work at all when I test it in IE on my laptop (Windows 7). Any idea why that would be? I'm using the FLV Player to play my video, as it gives me nearly all the parameters I was looking for, it doesn't require any scripting, and it's open source. Also, it seems to work with all the major browsers while not forcing me to use the EMBED tag, which is deprecated now and shouldn't be used. But it still boggles my mind why it would work in IE on one of my computers but not on the other. Hi guys. I'm developing a website, as you do, but I've got two glitches with IE7, that Firefox doesn't have (though that always seems the case). This is to do with the OBJECT tag - using this code: <OBJECT data="nextshow.htm" type="text/html" width=185 height="80%"><P>No information available about our next show.</P></OBJECT> I wanted to show the content in the HTM file but have a transparent background, showing what is behind the OBJECT. This works fine in Firefox, however with IE7 it assumes a white background on the object by default, not a transparent background. In the meantime I have used a conditional comment on the nextshow.htm page to use a relatively suitable colour for the background if IE7 is being used, but it would be nice to keep it transparent - any suggestions? The other issue is in using saurdo gallery (an AJAX photo show / gallery applet). If you visit this page in IE7, then select a photo, the screen darkens and loads the photo in full-size, however the OBJECT is still above everything else, covering up a part of the photo as well as the CLOSE button in the box. In Firefox, this isn't an issue, with the object displaying underneath the box and darkened screen. The aforementioned link will also exemplify the first issue I am having. If you can help me out I'd be very appreciative. Thanks! -Rhys Andrews What I want to do is have an iframe or something that contains only a portion of an external website. Specificically, I want to only include the search results of an ebay search URL. I can use an iframe, object, or server-side include to include the whole page in my page; however, I can't figure out how to access the dom on those objects so as to locate only the search-results div. It must be doable, since I can see that dom via firebug, but I can't seem to access it programmatically myself. Any suggestions? I have an object (swf animation). Now, i would like to have an image directly under that object (touching each other). Hey, my name is yann from Angola and Holland at the same time. My english isn't really perfect, so can someone please place a link to a tutorial that completely explains how to perfectly use the Html's object tag and it's atributes. BTW, im learning html 4.01. Is it worth it? I inserted an swf using the object tag. I used hspace and vspace to position it. Some browsers (opera/firefox) don't seem to be reading the vspace. Can I use CSS to position an object tag? I tried giving it a class name but it still doens't seem to work. Any suggestion? Hi everybody I know what is CLASSID. But, when embedding an ActiveX control into my Web page, what CLASSID should I include. For example, I want to embed Microsoft Agent "Merlin", how can I know what is its CLASSID. Any help will be highly appreciated. Im getting an error in line 44 of my code, my body tag with upload in it. The error says object expected. Any advice? Code: <HTML> <HEAD> <TITLE> **** </TITLE> <SCRIPT type="text/javascipt"> var Color= new Array(9); Color[1] = "ff"; Color[2] = "ee"; Color[3] = "dd"; Color[4] = "cc"; Color[5] = "bb"; Color[6] = "aa"; Color[7] = "99"; Color[8] = "88"; Color[9] = "77"; Color[10] = "66"; Color[11] = "55"; Color[12] = "44"; Color[13] = "33"; Color[14] = "22"; Color[15] = "11"; Color[16] = "00"; function fadeIn(where) { if (where >= 1) { document.bgColor="#" + Color[where] +"0000"; where -= 1; setTimeout("fadeIn("+where+")", 15); } else { setTimeout('fadeOut(1)', 15); } } function fadeOut(where) { if (where <=16) { document.bgColor="#" + Color[where] +"0000"; where += 1; setTimeout("fadeOut("+where+")", 15); } else { setTimeout("fadeIn(16)", 15); } } </SCRIPT> </HEAD> <body onLoad="fadeIn(16)"> <p></p> </body> </HTML> Hi, I am very very new to HTML and have been trying to find out how to add a border to an object, which in my case is flash. Here is my script : <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="650" height="320" id="tacticalassassin" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="tacticalassassin.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="bgcolor" value="#FFFFFF"/> <embed src="tacticalassassin.swf" quality="high" wmode="opaque" bgcolor="#000000" width="650" height="320" name="tacticalassassin" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> I've tried putting border=2, border="2", border=2px ect.... I've tried so many variations but can't get it to work... Can some one please help, thanks ! Hi, I have an activex control which loads with object tag. I use the windows registry key value to load the class. When i run the code from a local machine it works fine, but when i upload to a unix based server, the controls do not load. Is there something I am doing wrong? |