Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
html and javascript work properly there as you can see.
but when I add this to a htmlbox in google sites, it shows an error saying "1+1: URI unknown:///unknown is malformed"
Help me,
thanks
Here's my html and javascript
[1]: http://jsfiddle.net/TvHdU/4/
Make sure when you hit page create that "webpage" was chosen in the dropdown.
When the box comes up to edit the page, make sure that you click the html icon in the edit box.
Copy the html you provided, and pasted it into the page and below it wrote script tags to contain the javascript you provided.
<script>
//your js code here
</script>
Since Google restricts their sites, you have to use Google APIs to obtain the js code you need in order to make the Google Gadget work. Here's the API site
This should give you what you need in order to get you Google Gadget working with JavaScript.
You can view the working google site I just created here, then click on "include html" link on left bar under "Home".
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
function() {
return typeof o!=="undefined"&&
!o.event.triggered
? o.event.handle.apply(arguments.callee.elem,arguments)
: g
}
I'm working on an asp.net site. For product categories on the website, the images for the categories are fed from a database. I've got those going fine, but the image for mouseover event is from some other part of the site. The site is using a library I've never heard of called jQuery tools with something called a sizzler css engine. If it helps, here is a link to the page I'm working on. You will notice the Duck Commander link can't change to a hover image.
The code above is what developer tools found was activating to change the image.
The Website in Question
Looks like you are missing the Duck Commander mouse over image:
GET http://fireworkssupermarket.com/Content/images/categories/duckCommander_over.png 404 (Not Found)
While I don't necessarily agree with the design of the site, I can understand coming in to a project that you can't start from scratch on.
That said, it appears to me that you are simply missing the hover image file titled "duckCommander_over.png" at path:
Content/images/categories
Find this folder in your file structure and see if the file exists, if it doesn't, you'll need to create it.
Scott,
You're simply missing the image file needed for the hover action to retrieve. The site is looking for a 'duckCommander_over.png' file which is non-existent on your site. Looks like the hover images were manually created in an image program (it's not an effect applied through CSS or JavaScript) so you'll have to upload an image with the red glow already applied and name it 'duckCommander_over.png'
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Salutations! fellow developers, I am kind of stuck in a pickle here. I managed to create a HTML5 animated banner for my blog. After the exported content I received these two files:
i) banner.html --> I can change the name of this to whatever I want and functions perfectly.
ii) sprite.js --> When I change the files name, location and content. The "banner.html" automatically stops to functioning/working.
Is there a possible way that I can just have the "banner.html" file to function properly with my content without the "sprite.js".
-If yes, please share your solution.
-If no, please explain alternative working solution that you deem necessary.
Thanks to anyone who had answered.
-LEO
You can include scripts directly into HTML documents with the SCRIPT tag:
Substitute
<script src="sprite.js"></script>
(which has to be somewhere inside the HEAD tag of your document) with
<script>
<!--
//contents of sprite.js go here
//-->
</script>
Open your banner.html in a text editor.
There should be a line line
<script src="sprite.js"></script>
Replace it with
<script>SOURCE_OF_SPRITE.JS</script>
Of course "SOURCE_OF_SPRITE.JS" should be the actual source.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm going crazy! :)
I need a way to add a closing </div> before another element. But everything I try the </div> gets filtered out. The problem is, that this might be the only solution for me.
So please, please have a look to this and maybe you're able to give me a hint:
I'm building a bootstrap based template for LimeSurvey, a online survey tool. Their templates are completely done with tables and I try to find another way and to get it mobile friendly.
The template is separated into different files. For my issue this is:
-> Startpage
-> Navigator
-> Endpage
Normally it loads always a "Surveypage" between Startpage and Navigator. But there is an option which automatically puts all question directly under the startpage and therefore into my header. So in this case I need another '' or another way to close the header first.
So there's a
<div class="jumbotron">
and I have to close it before the element
<table id="ls-table" ... >
I already tried many JavaScript examples I've been able to find around the web. But none makes the job.
Thanks a lot!
Philipp
There are only two ways to manipulate a web page using JavaScript.
The DOM, or document object model.
Via string-manipulation of the HTML.
Most web browsers will NOT allow you to do #2 directly on an already-loaded or loading document. At best, you could find a situation wherein you read the HTML of a <body> and then re-parse it. But doing so is an amazing amount of work for very little effort.
Look into the insertBefore method on the DOM, which will let you grab that <table id="ls_table" > element and move it from within that <div> to being a child of said <div>'s parent, immediately after the offending element.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have seen various websites that offer to do this with advertising links back to themselves etc but was thinking it should be doable in Javascript.
Has anyone got such a script or an example site which I can learn from to create it?
Ideally i'd like to grab the feedback comments and maybe the seller star rating to then display on my website. Also would like to show say the 10 most recent comments which dynamically update as more users leave feedback on ebay.
Thanks for any help
Here is an example that can be used to pull eBay feedback.
<link rel="stylesheet" type="text/css" href="http://www.x-shops.co.uk/ebay/css/feedback.css" />
<script type="text/javascript" src="http://www.x-shops.co.uk/ebay/feedback.php?id=[USERID]&site=[SITEID]&seller=[SELLER]"></script>
[USERID] This is your eBay user ID and is required.
[SITEID] You need only change this if your site is not eBay.co.uk, check here for a list of eBay site codes
[SELLER] Optional you can add your power seller level.
Here i also found a another eBay tool, it is a little badge which can display / show eBay feedback score profile on your website or blog by simply adding a one line of html code. However it has many variables to customize your badge style.
Here the code:
<iframe width="180" HEIGHT="160" style="border: none;" src="http://myfeedbackscore.com/fbscore.php?id=Your-eBay-User-ID"></iframe>
Here is the method, how to use it:
How to use above eBay widget
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to simulate such clicks without controlling web browsers to do the job. I don't know much about javascript and actually don't know where to start.
Any ideas?
Althoug I have no use it, I think that maybe twill is what you need:
twill: a simple scripting language for Web browsing
Have a look at this too:
Testing Web Applications with Python and Twill
You can use iMacros in combination with Python...
This isn't the most direct solution as it requires you to write an iMacros script to do that actual clicking, and then load the page and call the script from Python.
Refereces:
iMacros CLICK command
iMacros wiki
I recommend you take a look at Selenium.
If you had control over the link (like adding an ID attribute) you could use javascript to simulate the click
var link = document.getElementById['yourLinksIdAttrbuteValue'];
link.click();
or you could use jQuery selectors as an easy way to better target the link without altering it...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script>
$(function(){ $("a[href^='javascript']:contains('text')").click() });
</script>
With that code it'll load the JQuery library from google's server, wait for the dom to load, then execute the click.
for more info on jQuery selectors check out http://api.jquery.com/category/selectors/