I want to give a code snippet to partnering websites, so that the script on their page draws from a page on my server. I think "quote of the day" type widgets use this.I copied this code from a site and it works for them, but when I switch the url to a php page (containing only text wrapped in a div) on my site, it doesn't work. I realize this might also be a php question, but I didn't want to cross-post. Does it have something to do with the "jscript=1" variable being passed?
I am trying to have a text link above Google Maps link to a marker on my map. When the link is clicked, the map will automatically center itself on the marker. I already have the custom markers and locations, I am just not that good with Javascript and jQuery to figure it out.
I currently have this pop-under JavaScript code that basically loads a pop-under upon page load,Is there a JavaScript code that executes both codes above, from an external website, and runs every time the page is loaded?
I found a great piece of Javascript on this forum for linked random images with rollover effect but I can't figure out how to add "no border" to the script as I do not want to have a border around the linked images.
I am trying to assess why the slider that I've linked to in the head tag of my source code will not load properly on my page. My site's link is : [url]
I have some code that works great when used inline (inside of an html page). The inline code looks like this and has an onchange = "gotoTest(this);" as part of the select element
So I've come across something which I need to find for a project which would also be very useful in general. How can I create the embed code which has the ability to be copied? I require something similar to the youtube embed code snippet, where you can click on the embed area, it highlights the content for you to copy. I've been doing some searching but can't find much as yet.
I am trying to figure out how to use the YouTube embed code but allow the user to paste the specific url to the video he wants to show on the Flash player. I think that to make this work that I will have to either load the information into a SQL database and call it from there or have javascript write the entire embed code with the value video1 as the source but I don't have very much experience with either.
I am trying to set up some simple Javascript that takes the text value from a form submission (textarea A), and dynamically inserts that text into another textarea on the same page (textarea B).I need the text from textarea "A" to go in the *middle* of pre-existing text inside textarea B (instead of replacing it).
I found an issue with using embed code and jquery's show()/hide () method. I am using embed code inside of a div. So it looks something like this: <div id="test"> <embed> whatever here </embed> </div>
Now on that I want a user to be able to click a button to show/hide the content. So I create a function like this: <script type="text/javascript"> function showEmbed(){ if($("#test").show()){ $("#test").hide(); } else { $("#test").show(); }} </script>
I then binded that to just a basic text link: <a href="javascript:void(0);" onclick="showEmbed();">show/hide</a> Now that works fine as far as showing/hiding the embed code. However, there is one issue with this. When I click the link it reloads the data. I do not want it to reload the data. Say for instance there is a video playing in there. If you click the link it will stop the video and when you click it again to show it will start again. How to get it not to reload the data.
This works fine when I place this code under the html in the main source, but if I try to add this Jquery code to an external js sheet it doesnt seem to work?
Currently my js sheet is called in the header, when I move this link to the footer of my page the code works again, so Im guessing this has something to do with where the jquery code is placed in relation to the code Im trying to hide?
How I can keep my js in the header but still make the content disappear on click?
This script and code works great, but in order for me to finish, I need a way of passing to the next PHP page which check box is checked. Currently, it is just passing a single value (1, 2, 3, 4, 5, or 6) depending on the last box checked. I need a way to record which check boxes are selected.
I have the following code to load an external page into a "holder" div on my main site. It works fine in Firefox but when a user views it in Internet Explorer 7 it seems to hang for a minute or two and then starts to work normally. Also when someone resizes the browser window the site seems to hang again. Is there something wrong with the code below or is it just the limitations of jquery/javascript in Internet Explorer?
The basket.cfm loads content from a database and the loadMyBasket function is called when a user clicks a link on a different part of the site.
The code above gets loaded automatically when the site first loads and also gets called when the user clicks a link to update the basket.
Im using a Javascript to load content into a div tag when a link is clicked, but how will i be able to make content load into a div on another page when the linked is clicked.for example, i click the link -> then a new page opens -> and in that page the content is loaded in a div tag.but onload won't work, i want it to load with like [URL]
I've only started looking at RSS Feeds over past couple of days and am wondering if its possible to embed a reader in a web page. What are the basic steps required/Can it all be done through javascript ? I've searched Google but only get converter services etc.
GOAL: My end goal is to send a web page (single file) as an attachment (not embedded) via email to any of the main email clients (Eudora, Outlook, etc). Users see a single web page attachment and either double click or "view in browser" in order to view it. (It is an attachment after all).... When they DO open Internet Explorer (is all I need, not netscape), a single image appears with some appended text.
CHALLENGE: My challenge is: I don't believe I can send more than one file via email because of the potential renaming of currently-existing files (i.e. the image gets renamed and the webpage points to an older picture, because the web page was certainly not updated). Also, some email clients, like Eudora, like to attach the whole path name of an attachment as the file name (so that C: empabc.jpg becomes CTEMPABC.JPG and the web page no longer knows what to point to depending upon the email clients).
METHOD OF OPERATION: So I thought, perhaps there's a way to embed the image DATA into the html itself and on "onLoad" or some other method, save the temp file (whatever.jpg) and rewrite the html to point to the IMG file.
THE QUESTION: How can I do that? (or another way to accomplish the same).
REQUIREMENTS: Internet Explorer 5 or 5.5 and better, as I use a plugin which requires IE, not an email client's internal browser, and *not* netscape. Windows 98se or better.
Nothing fancy, however with that in there, the page seems to load twice in IE. It fetches the SSI header, then clears it, then loads the rest of the page 'behind the scenes', then finally displays it.
If I remove the embed, it loads the page bit by bit and you can start reading before the rest of the page is done, which is what is desired for obvious reasons.
Any idea why embed causes this? Works fine in FF etc.
I got a page on which on the left side there is a Tree with branches, on the right side of the page i got an <EMBED> tag that shows a pdf file, User can click on tree branches to expand them and can click on the leafs to view different pdf in on the right side of the page...
The problem is that if a user expand several branches the tree grows down and than the user scrolls down the page. to click some leaf of the tree... and by doing the scroll the <EMBED> tag with the pdf becomes invisible (because the user scrolled up)..
how can i make the <EMBED> tag stay allways on top of the page even if the user scrolls down....?
Is there code to just underline linked text to a certain color (red) but doesn't change the text color (it was white & when hovered over, it still stays white with a red underline)?
I'm wrestling with this bit of code that almost works but does not. I'm only guess is that I need to find a way to edit the actual CSS document from the outside... which I'm assuming isn't possible. Is it? I've got a basic CSS Rollover effect going on. The kind that changes the background-position on hover. However I've defined the actual background image with PHP (a custom field in Wordpress) as a style="..." in the <a> tag. When I define the background-image in the CSS it works! When I define the background-image as a style="..." it does not work. Can I use javascript or something to edit the actual CSS document?