お気に入りから小窓を開く方法とは?

このQ&Aのポイント
  • お気に入りに追加することで、ポップアップ画面を表示する方法を知りたい。
  • MacやSafariおよびFirefoxで利用できるお気に入りから小窓を開く方法を探しています。
  • 現在利用しているジュゲムの方法ではマックでも使用できるが、他の方法ではうまくいきません。
回答を見る
  • ベストアンサー

お気に入りから小窓を開く

お気に入りに追加することで、ポップアップ画面をだすほうほうをやりたいのですが サンプルや開設ページがみつかりません。 たまに、開設ではなく、それを利用したものをみるのですが、 mac/safari.foirefoxでできるものがありません。 唯一、ジュゲムのものが、マックでも使用できました。↓ javascript:t=document.title;u=location.href;if(document.selection){d=document.selection.createRange().text;}else%20if(document.getSelection){d=document.getSelection();}else%20if(window.getSelection){d=window.getSelection();}else{d='';}w=window.open('http://xxx.jugem.jp/admin/?mode=bookmarklet&t='+t+'&u='+u+'&d='+d,'bookmarklet','scrollbars=yes,width=600,height=600,status=yes,resizable=yes,scrollbars=yes');w.focus(); これはhttp://jugem.jp/support/faq.php#29 のもので、記事の内容とかを簡単に引用できるもなんですが そういう事はする必要はなく ただ、単純に お気に入りから、ポップアップで、htmlを表示したいのですが http:のところを、変更しても、使えませんでした。 なにかサンプルがあれば、アドバイスお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
  • 3o-clock
  • ベストアンサー率33% (233/689)
回答No.1

javascript:void(bloppop=window.open('http://~~~.html','wo','scrollbars=yes,width=300,height=300,left=0,top=0,status=yes,resizable=yes')); これでできます。

関連するQ&A

  • DMM検索のブックマークレット出来ませんか?

    google検索の javascript:(function(){x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();};m='http://www.google.co.jp/search?hl=ja&q='+encodeURIComponent(Q)+'&lr=lang_ja';y.open(m,'_blank','');})(); みたいな DMMの月額レンタル検索をできませんか http://www.dmm.com/search/=/category=rental/searchstr=BA__/analyze=V1EAAFYHUQs_/

  • ●excite英日、日英の頁翻訳ではなく、選択テキスト(長文対応)を新しいウィンドウに結果表示させるブックマークレットとは?

    ●下記頁にexcite英日のブックマークレットがありますが これを新しいウィンドウで開く為には、どのように修正すればよいのでしょうか? http://www.excite.co.jp/world/bookmarklet/ javascript:(function(){var%20b=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));if(b!=''){location.href='http://www.excite.co.jp/world/english/?before='+encodeURIComponent(b)+'&wb_lp=ENJA&ie=UTF-8';}else{location.href='http://www.excite.co.jp/world/english/web/?wb_url='+encodeURIComponent(location.href)+'&wb_lp=ENJA';}})(); ●私のイメージとしては 下記頁の最下部にある"選択範囲をExciteで邦訳する(IE版)"が近いのですが 惜しい事に、長文選択の場合、上記ブックマークレットのようには翻訳できないようです。 http://confetto.s31.xrea.com/misc/bookmarklets/tool javascript:(function(){var d=document,b=d.body,f=d.createElement('form'),p=f.appendChild(d.createElement('p')),i=p.appendChild(d.createElement('input')),t=p.appendChild(d.createElement('textarea'));f.action='http://www.excite.co.jp/world/english/';f.method='post';f.target='_blank';f.style.display='none';i.name ='wb_lp';i.value='ENJA';t.name ='before';t.appendChild(d.createTextNode(d.selection.createRange().text));b.appendChild(f);f.submit();b.removeChild(f)})() ●excite英日、日英の頁翻訳ではなく 選択テキスト(長文対応可!)を新しいウィンドウに結果表示させるブックマークレットを教えて下さい よろしくお願い致します。m(_ _)m

  • 小窓について

    はじめまして、お教え下さい。 goliveでHP作成してますが リンク先にgif画像の小窓を表示させたいのですが 具体的にはどうすればいいのでしょう? 色々探したら下記のような表示がありましたが、例えばここにgif画像を差し込んで表示するにはどうすればいいのでしょう? 何卒よろしくお願い致します。 <A href="javascript:w=window.open('アドレス','','scrollbars=yes,Width=250,Height=100');w.focus();">ポップアップ</A>

  • 中央に小窓表示

    とあるサイトで中央に小窓表示JavaScriptを使用し Another HTML-lint gatewayで文法チェックしたら XHTMLでは <SCRIPT> や <STYLE> の内容が #PCDATA です。コメントはコメントとして解釈されてしまうので、旧来のテクニックは使えません。外部にスクリプトファイルやスタイルファイルを用意するようにしましょう。 とでました 下記のJavaScriptを外部形式にするにはxxx.jsに書くところまではわかりましたが書き方がわかりませんどこを変更したらいいのでしょうか <script type="text/javascript"><!-- function m_win(url,windowname,width,height) { var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no"; if (width) { if (window.screen.width > width) features+=", left="+(window.screen.width-width)/2; else width=window.screen.width; features+=", width="+width; } if (height) { if (window.screen.height > height) features+=", top="+(window.screen.height-height)/2; else height=window.screen.height; features+=", height="+height; } window.open(url,windowname,features); } // --></script> よろしくお願いします

  • textareaの選択された文字列の取得

    HTMLエディタを作ろうとしています。 textAreaの選択された文字列の開始桁数・終了桁数を取得するにはどのようにすればよいのでしょうか? var selected_text; if (document.getSelection) // Moz { selected_text = document.getSelection(); } else if (document.selection && document.selection.createRange) // IE { rng = document.selection.createRange(); selected_text = rng.text; } alert(selected_text); これで、選択された内容は取得できたのですが、初めと終了の桁数が取れていません。 クロスブラウザに対応したく、IE6以上、FF3、Opera9.5、Safari3.1、Choromeにて動作を確認したいのですが、お分かりになる方いましたら、よろしくお願いします。

  • 新規ウインドウ+submit

    はじめまして。 画像をクリックし、新規ウインドウ SUBMITさせたいのですが、 元のウインドウがクリックした画像のみの表示に切り替わってしまいます。 これを直したいのですがどうしたら良いでしょうか? 知恵を貸してください。 宜しくおねがします。 以下にその部分ソースを記述します。 function onSearchfree(val){ var coWinaddCookie; if (val==-1){ if (navigator.appName=="Microsoft Internet Explorer"){ coWinaddCookie=window.open("http://www.ooooo.co.jp","childaddCookie","status=yes,scrollbars=yes,width=800,height=600,left=0,top=0");} else{ // Netscape coWinaddCookie=window.open("http://www.ooooo.co.jp","childaddCookie","status=yes,scrollbars=yes,alwaysRaised=yes,width=800,height=600,screenX=0,screenY=0"); } coWinaddCookie.focus(); }else{ document.searchform.submit(); } } /*****HTML******/ <IMG src="http://www.ooooo.co.jp/image/set.gif" border="0" onmousedown="onSearchfree(-1)" title="" alt="">

  • フォームの組み合わせでリンク先を指定する方法

    4つの項目から選択して、テキストフィールドに入力した番号の組み合わせでダイレクトに詳細のページに飛ぶようにしたいのですが、 初心者のためにつまずいてしまいました。よろしくお願いします。 <SCRIPT language="JavaScript"> <!-- function setData(txt) { document.pass.word.value = txt; } function PassLink(){ PassWord=document.pass.word.value; check = /()/; if (!PassWord.match(check == /ri/)) window.open("http://www.●.co.jp/1r/"+PassWord+"/"+PassWord+".html", "","toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); else if (!PassWord.match(check == /rk/)) window.open("http://www.●.co.jp/member/1r/"+PassWord+"/"+PassWord+".html", "","toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); else if (!PassWord.match(check == /pi/)) window.open("http://www.●.co.jp/ap/"+PassWord+"/"+PassWord+".html", "","toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); else window.open("http://www.●.co.jp/member/ap/"+PassWord+"/"+PassWord+".html", "","toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); } // --> </SCRIPT> <FORM name="pass"> <select onChange="setData(this[this.selectedIndex].value)"> <option value="ri">RI</option> <option value="rk">RK</option> <option value="pi">PI</option> <option value="pk">PK</option> </select> <INPUT type="text" name="word" size="9" value="a" maxlength="9"> <input type="button" value=" 検 索 " onClick="PassLink()" name="button"> </FORM> どなたかお詳しい方、助けていただけないでしょうか。 よろしくお願いいたします。

  • ブラウザサイズをフルサイズで表示させる方法

    ブラウザにタイトルバーとスクロールバーとスタートバー以外を表示しないページを作成したいのですが、 XPはOKで、WIN98でうまくいきませんでした。リンク先をクリックすると別ウィンドウが立ち上がる仕組みです。画面サイズに合わせて変わるようなのですが、WIN98では、スクロールバーが途中で切れてしまい、 一番下まで、綺麗に表示できませんでした。これ以外の方法でもかまいませんので、どなたかご伝授いただければと思います。 function wopen(url){ if(screen.width <= 640){ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=640,height=480,left=0,top=0") }elseif(screen.width <= 800){ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=800,height=600,left=0,top=0") }else if(screen.width <= 1024){ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=1024,height=768,left=0,top=0") }else if(screen.width <= 1152){ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=1152,height=864,left=0,top=0") }else if(screen.width <= 1280){ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=1280,height=1024,left=0,top=0") }else{ window.open(url,"_blank","resizable=no,menubar=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=1600,height=1240,left=0,top=0") } return; } : <A href="javascript:wopen('/index.html')">

  • お気に入りの追加 何も起きない

    お気に入りの追加ボタンを設置したいのですが 下記コードを作っても何も起きないし、 お気に入りに追加もされません。 IEを使っています。 <html> <head> <title>test</title> <script language="JavaScript" type="text/JavaScript"> <!-- function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } else if( window.opera && window.print ) { return true; } } //--> </script> </head> <body> <input type="button" value="お気に入りに登録" onClick="addBookmark(document.title, location.href);"> </body> </html>

  • Chromでポップアップウィンドウのサイズ指定

    現在以下のような指定でポップアップウィンドウを開いているのですが Chromの場合、サイズ指定が無視されてしまいます。 良い方法ございましたら、ご教授いただけますでしょうか。 var subopen function subWinmap(){ subopen=window.open("map.html","map","resizable=yes,scrollbars=yes,menubar=yes,toolbar=no,directories=no,status=no,location=yes,width=700,height=800px"); if (!subopen.opener) subopen.opener=self; if (window.focus) subopen.focus(); }

専門家に質問してみよう