Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
wordpress onclick focus search box

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
svetac



Joined: 16 May 2007
Posts: 9
Location: Zagreb

PostPosted: 10.05.2009 21:29    Post subject: wordpress onclick focus search box Add user to your forum ignore list Reply with quote

Pozz ekipa,
napravil sam si custom 404.php u wordpressu, sve lijepo i divno radi dok mi napamet nije sinula ideja da uz tekst stavim i link koji kad se klikne kursor skoči u search input box na vrhu stranice. Dakle tipa <a href="#" on click="something something">search</a>
I sad sam zapeo kak to rjesit te da li je to uopće izvedivo? Google mi nije bas pomogao.
Eto toliko
Svaka pomoc je dobrodosla. Hvala unaprijed.

_________________
[URL="http://novaljapag.com"]NovaljaPag.com[/URL] [URL="http://9a5bdd.com"]9a5bdd.com[/URL]
[URL="http://villa-margareta-novalja.com"]Apartments Novalja[/URL]
Back to top
View user's profile Send private message Visit poster's website
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 11.05.2009 01:17    Post subject: Add user to your forum ignore list Reply with quote

A da staviš link direktno na rezultate pretrage?
npr. http://www.domena.hr/?s=search+term

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
zipa



Joined: 25 Feb 2007
Posts: 34
Location: Pariz/Pula

PostPosted: 11.05.2009 05:47    Post subject: Add user to your forum ignore list Reply with quote

Prvo u dokumentu trebaš označiti mjesto gdje se nalazi search box:
Code:
<a name="searchbox">Search (ili stogod...)</a>

Kasnije, u linkujednostavno specificiraš:
Code:
<a href="#searchbox">Idi na search box</a>

ili
Code:
<a href="#" onclick="location.hash='searchbox';">Idi na search box</a>
Back to top
View user's profile Send private message
zipa



Joined: 25 Feb 2007
Posts: 34
Location: Pariz/Pula

PostPosted: 11.05.2009 05:52    Post subject: Add user to your forum ignore list Reply with quote

Još jedan način, s razlikom da će ovaj odmah postaviti kursor u search box:
Code:
Search: <input type="text" name="searchinputbox" id="searchinputbox">
...
<a href="#" onclick="document.getElementById('searchinputbox').focus();">Idi na search box</a>
Back to top
View user's profile Send private message
svetac



Joined: 16 May 2007
Posts: 9
Location: Zagreb

PostPosted: 11.05.2009 09:22    Post subject: Add user to your forum ignore list Reply with quote

Puno puno hvala Zipa, ovaj zadnji post je točno ono što sam tražio. I radi savršeno!
Hvala još jednom.

_________________
[URL="http://novaljapag.com"]NovaljaPag.com[/URL] [URL="http://9a5bdd.com"]9a5bdd.com[/URL]
[URL="http://villa-margareta-novalja.com"]Apartments Novalja[/URL]
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group