HTML - Javascript Popup Problems
ok guys
i have a small code on button click i open a popup in that popup i have one radio button to be selected back to my main program how do i check which button has been selected ? should i show code? thank you Similar TutorialsOk, so, I have a copy of Macromedia Fireworks. I used it to create a rollover navigation bar for my site (see link at the end of this post). Fireworks exports the file as HTML, and not XHTML, so the JavaScript in the code doesn't validate. The W3C Validator has found 4 problems (there was around 70,but i fixed those all up, because they were just img tag issues): If anyone knows JavaScript and can fix these (or at least help me fix them), please post! Link to the page in question: http://ericsartor.freehostia.com/new-template/ Just view the source to see what I'm talking about. Hello, I'm having trouble with javascript on my website. Hopefully somebody here can help me out. The website is http://www.mm-theory.com The problem arises when you click on the little asterix in the left-hand margin, the one that says "click me" underneath. It tells you you need to have javascript enabled even though you may already have it enabled. I get this problem only when I have the omni slide menus at the top and the right side (the ones that say "quick links" and "papers" and open up when you move the mouse cursor over them). I got the code from http://www.dynamicdrive.com/dynamici...lide/index.htm and followed their instructions to the letter. I don't get this problem when I remove the menus. The code for the asterix link is as follows: Code: <a class="margin_icon" onclick="openWin('deeper_problem.htm','',600,1);return false;" href="enablejs.htm" target=_blank> <img class="margin_icon" src="icons/side.gif" alt="side.gif" border=0> <br> <span class="margin_icon"> Click Me! </span> </a> The code for the openwin function is as follows: Code: function openWin(url,name,wid,hgt) { sw=(screen.width-wid)/2; sh=(screen.height-hgt)/2; newwin=window.open(url,name,'width='+wid+',height='+hgt+',top='+sh+'+sh+',left='+sw+',scrollbars=0,menubars=0,toolbars=0,directories=0,location=0,address=0'); mewwin.focus(); } This function is made available on the home page I linked you to (http://www.mm-theory.com) by the following code in the head section: Code: <script language="javascript" type="text/javascript" src="openwin.txt"></script> Can anyone tell me why it says I need to enable javascript when javascript is already enabled? Hi. My entire site is 100% XHTML1.1. Except for some new code I added which causes errors in validation. the code is HTML Code: <a href="http://babelfish.altavista.com/babelfish/" onclick="window.open('http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_it&url='+encodeURIComponent(location.href));return false;" title="Translate to Italian"><img title="Italian" src="http://geekimo.com/licons/it.png" alt="Italian" /></a> I understand maybe CDATA islands can help with this? or making it external? but I have no idea how to do that with it having html code in there too.. I don't know if you can surround it in CDATA tags. There are other lines of code too, exactly the same except have different languages. Any help would be awesome! this is my page http://web.vtc.edu/users/cjb06271/CI...nal/order.html there are several things I would like to happen. 1. the right collumn background to be where the right collumn should be(so other links in navbar) 2.The test between the roach pictures to be alligned with the top rather than bottom of pictures (so smaller windows can see) 3. When you size the window smaller than the text, a scroll bar appears, and when you scroll the background no longer exists. If I put it on auto the background will only go as far as the text does. 4. (nice but not required)The cocroachs to be alligned to the left and right of the top bar respectively, and the text in the middle. 5. (nice but not required) the right column background image is being cut in half (as does the top one if you size small enough). any way to make the images ignore the collumns? don't worry about the colors I will be changing them soon We have an web application that currently uses standard javascript popups. If we change them to open in a new tab instead of popups, will popup blockers still treat the opening into a new tab as a popup? Thanks, s-one Hi, sorry for my english. I'm searching a script to make a particulary popup. In this link there is an example, is flash popup with spot Microsoft. LINK EXAMPLE POPUP I use this code but I search the code for flash popup not for img popup Code: <script> Crea(); function Crea(){ var div = document.createElement('DIV'); div.id='Banner'; div.style.position ='absolute'; div.style.top = "250px"; // Distanza dall'alto div.style.left = "200px"; // distanza da sinistra div.onclick = Chiudi; div.innerHTML='<img src=popup.jpg>'; // Percorso immagine document.body.insertBefore(div, document.body.firstChild); } function Chiudi(){ var div=document.getElementById('Banner'); div.style.display='none'; } </script> Thanks Hey, I wanna know how to change a URL in a Popup and what I need to do. say I have a website domain name "mrcrans.com" and I made a popup it would show "mrcrans.com" is there a way I can make it so it says another url? thanks I want to put a link on my page, and when the viewer puts the mouse over, I want there to be a choice of two links to choose from and click. What's the best way to do this and is there any disadvantage to the method? Hi Guys/Girls, Im in a sticky situation i have been searching the web and forums for a tutorial or example on how to create a popup box when the mouse cursor glides over it. what i want to achieve is something like this if you can please browse to http://www.uncle-buck.co.uk/Need-Mon...ncle-Buck.htm# if you hover over "See representative example >" you will see a popup box appear i want to achieve just that im not fussed on the color etc at the moment i ideally would like to get the functionality working correctly and then make it look nice later. if someone can help me i really would appreciate or even better if you know of or have seen a tutorial based on this then please do share it with me. Hope to hear from someone soon. Thanks Hi, I'm having an issue with my website.. I can' t open my popups anymore. If you click on any of the pictures you will see that nothing happen. http://bridge.narbonne.assoc.pagespr...animations.htm I'm not a webmaster, and this is a old website... Maybe I guess it needs some modifications in the code? This is javascript... Thank you for your help. Cheers uhh hi!.. i'm very new here and i'm relly hoping that you guys will help me.. My popups work great on firefox.. but when i try it on explorer it won't work. i really need to fix it coz all my friends' browsers are explorer... site is freewebs.com/bamc05 it's on the members page... Thanks! Hello all, Can anyone please send me some code to do this. i have an image. when someone clicks it i want a new window to popup, i can set the width and height. and there is a close window link when the window pops up that can close it. i know this is simple but everywhere i go tis so confusing.. any snippets or help?? thanks all!! Hello! I am in need of some assistance with pop-up windows... Thisis an example of the code I am currently using for pop-up windows (below), it opens a new window that displays an image and it works great!... Only now I require the same format (including the text underneath), only instead of having the pop-up windows display images, I need them to display a body of text in html format.... Can anyone please assist me with this? Thank you!!! <center><html> <head> <style type="text/css"> div.img { margin:2px; border:0px solid #0000ff; height:auto; width:auto; float:left; text-align:center; } div.img img { display:inline; margin:3px; border:1px solid #ffffff; } div.img a:hover img { border:1px solid #0000ff; } div.desc { text-align:center; font-weight:normal; width:120px; margin:2px; } </style> </head> <body> <div class="img"> <a target="_blank" href="klematis_big.htm"> <img src="klematis_small.jpg" alt="Klematis" width="200" height="150" /> </a> <div class="desc">Add a description of the image here</div> </div> <div class="img"> <a target="_blank" href="klematis_big.htm"> <img src="klematis_small.jpg" alt="Klematis" width="200" height="150" /> </a> <div class="desc">Add a description of the image here</div> </div> <div class="img"> <a target="_blank" href="klematis_big.htm"> <img src="klematis_small.jpg" alt="Klematis" width="200" height="150" /> </a> <div class="desc">Add a description of the image here</div> </div> </body> </html> Hello, I need some help with showing a pop-up in an application. This is a part of the HTML: HTML Code: <?xml version="1.0" standalone="yes"?> <Legendgroup> <Name>AERO</Name> <DisplayName>Aerorama's</DisplayName> <ShowInLegend>true</ShowInLegend> <DefaultVisibility>true</DefaultVisibility> <Legendentries> <Legendentry> <Name>AERO11</Name> <DisplayName>Aerorama's 2011</DisplayName> <MinScale>0</MinScale> <MaxScale>2501</MaxScale> <ConnectionName>Spatial</ConnectionName> <TableName>AERORAMA</TableName> <WhereClause>Where EXPIRED is null</WhereClause> <Tooltip>Toon Aerorama: <%.RECORDINGDATE%></Tooltip> ------------------------------------------------------------------ <ShowInLegend>true</ShowInLegend> <DefaultVisibility>true</DefaultVisibility> <IsRaster>false</IsRaster> <DisplaySymbology> <Color>RGB(0,165,0)</Color> <Font>WebDings</Font> <FontChar><![CDATA[µ]]></FontChar> <TextSize>10</TextSize> </DisplaySymbology> <HotspotSymbology> <Color>RGB(231,99,231)</Color> <Weight>3</Weight> </HotspotSymbology> </Legendentry> </Legendentries> </Legendgroup> I can select the symbol and want to open a new window (pop-up). In the table AERORAMA there is a column named PATH and contains this kind of info: \\st001b\Data\GIS Fotos\Fotos\Aerorama\zuid\BopZ_0004.html It's a path on some internal storage drive. I want the file above to be openend in the new window. How can i alter the HTML code above to make this happen? I thank you already! Marteijn Hi! I'm creating a website for my portfolio for all the videos that I have created during college. I have some hotspots on an image that I would like to use for the site, but I don't know how to create them as pop-ups (whenever I click on the hotspots the opened window just gets redirected to another page). I would like for these hotspots to open up a seperate window with my videos in them, and I'd also like the popup window to be a certain size. Can anyone let me know how to do this? Thanks. I have this JS of a popup. Two things I don't understand. First, when I look at it in Dreamweaver It shows in the design window the text ( link to popup ) how can I get rid of that. second question is, How can I get my popup smack right in the middle of the screen istead of top left. 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>Untitled Document</title> <script language="javascript" type="text/javascript"> function popitup(url) { newwindow=window.open(url,'http://www.rrc.mb.ca','height=200,width=200,'); if (window.focus) {newwindow.focus()} return false; } </script> </head> <body> <input type=button value="Open Red River Collage" onclick="return popitup('http://www.rrc.mb.ca')" /> </body> </html> Can anyone shed some light on why this will not open in a new window to the specified measurements? PHP Code: <span>{literal}<script>function fbs_click() {u="{/literal}{$enc_url}{literal}";t="{/literal}{$title_short}{literal}";window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+enco deURIComponent(t)','sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top right; text-decoration:none; } </style> <a href="http://www.facebook.com/share.php?u={/literal}{$enc_url}{literal}&t={/literal}{$title_short}{literal}" class="fb_share_button" onclick="return fbs_click()" style="text-decoration:none;">Share on Facebook</a>{/literal}</span> It opens in a new tab as opposed to what I have specified 626x436. Any ideas welcomed. Geoserv. Hi it is possible to have a pop up appear when the mouse is passed over an image/link Also is this code complecated code because im only a novice. thanx. hello, how can I create a full screen pop up like the boss panic button on www.workoplis.com the code i saw was Code: <a href="javascript:void(0);" onClick="fullScreen('http://www.workopolis.com/boss_button.html');" class="nav2off" target="_top">Boss Panic Button</a> thanks in advance.. Hello everybody, I am trying to make a simple text link that will lead to another (external) url but also will appear a popup window there, in the new url. How can I compine these two actions in a link? Thanks in advance Jim |