This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I have designed this search box in photoshop and want to implement it into a static php file on my local machine. I want to be able to change from the different search engines, such as google, yahoo, and others by clicking on the logo to the left and a drop down list being displayed. I don't know how I would change the url that the form gets, but I think I would make a table for the drop down list. And I am not good at coding forms either...
http://img824.imageshack.us/i/searchm.jpg/
Any help?
Looking at the 'dropdown' of search engines, I would imagine you'd have to use some kind of javascript framework for that (jQuery being my suggestion with this plugin):
http://www.marghoobsuleman.com/jquery-image-dropdown
http://jsfiddle.net/ddx4g/6/
Then you just need some PHP to work out what search engine was selected and the search title and redirect to the appropriate page:
$searchterm=$_POST['searchterm'];
$searchengine=$_POST['searchengine'];
echo'<META HTTP-EQUIV="Refresh" CONTENT="0; URL=$searchengine" . .com . "?=searchterm">'";
Or something along these lines. This was all done very quickly so there's bound to be some errors in here somewhere but should get you started.
Related
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Click here
When published and clicked, the link is www.examplewebsite.com/www.anewexample.com/index.html
Ive removed the href code and it doesnt work at all. If anyone can help, then im happy to listen.
You are using a relative href instead of an absolute link...
try adding http:// at the beggining.
Make your questions more complete next time, by posting your code at least.
When you write <a> tags , href must have http:// before it. If it doesn't, the browser thinks you're reffering to a relative path. So add http:// and it will work.
You should try without onclick:
Click here!
Much easier this way.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I want to ask you for help. I need some "simply-use" HTML syntax highlighter.
I have tryed http://alexgorbatchev.com/SyntaxHighlighter/ but this one doesnt support HTML5 tags and it has sliders on right side of screen no matter how big(small) content really is.
Thank you for any response.
prism.js
There are many scripts for this, but I find Lea Verou`s prismjs library to be the easiest to use. And of course it supports HTML5!
To use it, just wrap your code in pre and code tags, and give them a class of language-markup:
<pre class="language-markup"><code>
<div class="example">This is automatially highlighted</div>
</code></pre>
Here's what it'll look like:
and here' a live example: http://plnkr.co/edit/7Du1Oro4px3wsGv0BPOT?p=preview
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I need to generate a link that opens up Google Maps and identifies an area based on a US Zip Code in the query string, preferably like below:
I tried to do it using this query string: https://maps.google.com/?q=us+90120
Appending the zip code at the end. But it doesn't always work. Right now, it's pointing to somewhere near Greenville. What's weird is that if you open up Google Maps and search "us 90210", it does point you to Beverly Hills.
Anything I should add to the query string? Or is the approach all wrong? I just need it to be simple. Any piece of information would be highly appreciated.
Thanks!
You made a typo- the link goes to 90120, and therefore, Greenville, but you want to go to 90210, which is Beverly Hills.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am using TinyMCE with MVC 3 razor engine. I am trying to add my own classes I used content_css and added my style sheet. the classes appeared normally in the drop-down list but when i click them they don't affect the view or html. where should I look or inspect I'm using version 3.4.7
the problem was with the tinymce version
It can be a bug wiht tinymce. You can grab the lastest version and try.
Also consider migrating to ckeditor. Its a great editor and have support for a bunch of plugins. It's also highly customizable and esasy to implement and setup.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
Post all the code is really bizzare (1200 line more or less) so I create a fiddle for this.
The whole page is really slow, also when I try to manage items on the DOM with Firebugs or others tools (it's really frozen).
So I think the best way is to optimize the HTML-CSS (in fact, removing the CSS definition the page back really faster).
I don't speak about loading the page, but navigate/edit item when the page is loaded (really, try to sort it out with firebug for example, you will see immediatly; you will notice it also on fiddle too).
Instead of having everything editable at once, only go in editing mode once you click an edit link for the row (asp.net style) or when you click on the row itself (devexpress style), and only then show your editing stuff for that row only.
The easiest way to make pages faster is to remove the controls from it :)