![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 16.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam kod wyszukiwarki, która jest nakładką modalną w ajaxie, ale nie potrafię tego ujarzmić. Jak wsadzić tą szukajkę do diva, żeby dostosowała sie do reszty strony, bo teraz jest tak, ze to co jest u góry to jest, ale reszta strony po naciśnięciu szukaj znika i stronka sie przyciemnia... chciałbym, żeby była normalna. Żeby reszta strony zachowywała sie normalnie, a wyszukiwarka rozciągała sie razem z divem...
Tu macie przykład jak wygląda ta wyszukiwarka http://www.h4v3n.yoyo.pl/ajax/, a tu kod: Kod <!-- Google CSE code begins --> <form id="searchbox_012771097666453098207:sbe-p7aqkxo" onSubmit="return false;"> <input type="text" name="q" size="40"/> <input type="submit" value="Search"/> </form> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_012771097666453098207%3Asbe-p7aqkxo&lang="></script> <div id="results_012771097666453098207:sbe-p7aqkxo" style="display:none"> <div class="cse-closeResults"> <a>× close</a> </div> <div class="cse-resultsContainer"></div> </div> <style type="text/css"> @import url(http://www.google.com/cse/api/overlay.css); </style> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAoJe6cfGS9ESj8hMTEAROGRQdN3MPlk_R0pq08Bas804SrLnp1xQy_aCsQMw8UPVX UDkLIqxXso_4g&hl=" type="text/javascript"></script> <script src="http://www.google.com/cse/api/overlay.js"></script> <script type="text/javascript"> function OnLoad() { new CSEOverlay("012771097666453098207:sbe-p7aqkxo", document.getElementById("searchbox_012771097666453098207:sbe-p7aqkxo"), document.getElementById("results_012771097666453098207:sbe-p7aqkxo")); } GSearch.setOnLoadCallback(OnLoad); </script> <!-- Google CSE Code ends --> CSS: Kod /** Copyright 2007 Google Inc. All rights reserved. */ /** * CSS styles for the Custom Search Engine overlay built on top of AJAXSearch * API */ .cse-closeResults { float: right; } .cse-closeResults a { padding: 3px 5px; border: 1px solid #666; color: #000; font-weight: bold; text-decoration: none; cursor: pointer; } .cse-closeResults a:hover { background: #ddd; border: 1px solid #000; } .cse-overlay-bg { position: absolute; top: 0px; left: 0px; background-color: #000; } .cse-overlay { text-align: left; position: absolute; top: 0px; left: 0px; padding: 10px; width: 600px; background-color: #FFF; border: 1px solid #333; font-size: small; } /** * Custom AJAXSearch styles */ .gsc-resultsHeader, .gs-visibleUrl-short, .gs-watermark { display: none; } .gs-visibleUrl { color: #008000; } .gs-visibleUrl-long { overflow: hidden; } .gs-title { font-size: medium; } .gsc-trailing-more-results, .gsc-webResult, .gs-divider { margin-bottom: 1em; } .gs-divider { margin-bottom: 1em; text-align: center; color: #676767; } /** * Default AJAXSearch styles largely from * http://www.google.com/uds/css/gsearch.css */ /* control inputs * .gsc-search-box : the container that hosts the text input area * .gsc-input : the text input area */ form.gsc-search-box { font-size: 13px; margin-top : 0px; margin-right : 0px; margin-bottom : 4px; margin-left : 0px; width: 300px; } /* * This table contains the input element as well as the search button * Note that the search button column is fixed width, designed to hold the * button div's background image */ table.gsc-search-box { border-style : none; border-width : 0px; border-spacing : 0px 0px; width : 100%; margin-bottom : 2px; } table.gsc-search-box td { vertical-align : middle; } table.gsc-search-box td.gsc-input { padding-right : 2px; } td.gsc-search-button { width : 1%; } /** * undo common generic table rules * that tend to impact branding */ table.gsc-branding td, table.gsc-branding { margin: 0 0 0 0; padding: 0 0 0 0; border : none; } table.gsc-branding { border-style : none; border-width : 0px; border-spacing : 0px 0px; width : 100%; } td.gsc-branding-text { vertical-align : top; } td.gsc-branding-text div.gsc-branding-text { padding-bottom : 2px; text-align : right; color : #676767; font-size : 11px; margin-right : 2px; } td.gsc-branding-img-noclear { width : 51px; vertical-align : bottom; } td.gsc-branding-img { width : 65px; vertical-align : bottom; } table.gsc-branding-vertical td.gsc-branding-text div.gsc-branding-text { margin-right : 0px; text-align : center; } table.gsc-branding-vertical td.gsc-branding-img-noclear { text-align : center; } div.gsc-branding-img, div.gsc-branding-img-noclear, img.gsc-branding-img, img.gsc-branding-img-noclear { padding-top : 1px; } img.gsc-branding-img, img.gsc-branding-img-noclear { margin : 0 0 0 0; padding-right : 0; padding-left : 0; padding-bottom : 0; border : none; display : inline; } a.gsc-branding-clickable { cursor : pointer; } input.gsc-search-button { margin-left : 2px; } /* * Given that this is sitting in a variable width tabel cell, the idea is * for it to consume the entire cell. The adjacent cell contains the search * button and that is a fixed width cell. */ input.gsc-input { padding-left : 2px; border-style : solid; border-width : 1px; border-color : #BCCDF0; width : 99%; } .gsc-results .gsc-cursor-box .gsc-trailing-more-results { margin-bottom : 0px; display : inline; } .gsc-results .gsc-cursor { display : inline; } .gsc-results .gsc-cursor-box { margin-bottom : 10px; } .gsc-results .gsc-cursor-box .gsc-cursor-page { cursor : pointer; color : #000000; text-decoration: underline; margin-right : 8px; display : inline; } .gsc-results .gsc-cursor-box .gsc-cursor-current-page { color : #A90A08; font-weight : bold; text-decoration: none; } Błagam o pomoc, męczę się z tym od przeszło miesiąca... :/ |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 29.06.2025 - 00:33 |