Script To Create A Bookmark Link
Aug 13, 2005I want to add a link to my site's homepage where viewers can click on a link to automatically "add to favorites" or "bookmark" the page.
Does anyone know anything about this?
I want to add a link to my site's homepage where viewers can click on a link to automatically "add to favorites" or "bookmark" the page.
Does anyone know anything about this?
At the top of www.cheatstomb.com there is a link to bookmark the page but it doesnt do anything when I press it. What I did wrong and how can I fix it?
View 2 Replies View RelatedI have a javascript function for creating an 'add bookmark' link on my pages. For firefox it uses window.sidebar.addPanel to add the bookmark
function addBookmark(title, url) {
if (window.sidebar) { // firefox
window.sidebar.addPanel(title, url,"");
[code]....
I've searched high and low for some decent code that will allow a visitor to a website to bookmark the site through a hyperlink. The bookmarking is done through a javascript function that looks like this:
Code:
function OnBookmarkButtonClick (e)
{
if (window.sidebar)
[code]....
I need to add some detection for Opera, Safari, and Chrome. note that it must be feature detection, not browser detection. But as I said, I've searched high and low for this, and couldn't find anything.
We have an html page which brings in content dynmically using Ajax. So the page starts out with certain content, and when a particular link is clicked, the content is swapped out with new content. With this approach, the back button on the browser does not work, because the URL didn't actually change. How could a user bookmark the new page with the second set of content? Is this even possible?
View 2 Replies View RelatedI have files on the server: .txt, .xml, .config, and "no extension" - all editable with notepad.
User will write some input, it will be added to file in specific place.
I need an ability to change element value in file (in one of them - depends what user choose) (or it even can be some trigger word it-self like CHANGE_ME for not to use attributes)
Create a temporary copy of edited file and create a unique temporary link to it.
I don't know what to start from.... For now I know how to make XHR, but what to do with other extensions?
Have no idea how to save the NEW file (a copy of original file) on server , and create a UNIQUE link ,and delete the file right after it was downloaded.
I can find a specific word in xml file, but how to change it?[code]...
I have a servlet which accepts a url as a parameter and does something with it. I need to pass the parameter via POST.
I want to write a bookmarklet which takes the URL of the current page and invokes the servlet with that URL via POST.
I tried to achieve this in many ways. But no success.
I must begin to say that I'm rather new in wtiting and using JavaScript. Now
I want to use JavaScript in a HTML-page. On the homepage is a link. Every
time the homepage is displayed the link must point to another target. I want
to realize this by having a lot of differet targetpages. The names of these
pages are p1001.htm until p<nnnn>.htm. At this moment the last is p1153.htm,
but the amount is increasing every day.
I have a file named "counter.txt" which contains one line with the string of
the last targetpage, at his moment "1153".
My idea is to have a JavaScript which:
1. reads the file counter.txt to determine the last available page
2. then takes at random one number between 1001 and 1153,
3. sets the HREF-link to page p<random>.htm.
I know it must be possible in JavaScript, but can anyone help me?
Is it possible to create a link element in javascript like this one
Code:
<a href="modnodeform.php?nid=5" target="_blank" class="lbOn">a</a><br />
then pass it directly to window.open? In particular, I can pass the modnodeform.php?=5 to window.open but, I need to set the "class" attribute to then pass the window.open function.
I have called a table through XML with four fields. One of them is Excel file name. I like to make a clickable link with Excel file name to open it.
XML code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<searchable_index>
<item name="Ana" title="Data" link="docana.xls">Member</item>
<item name="Ana" title="Data" link="docana.xls">Member</item>
[Code]....
i created one blog . In that i put other site links . When users clicked that link it opened in the same tab . i need html codings to open in another tab if users click that link .
View 2 Replies View RelatedI have ran into some sites that must have an AUTO bookmark feature. After I visited it added a bookmark automatically. It only worked in IE 5.5 Do you know a script to do this if so where can I find a way to stop it.
View 2 Replies View RelatedI'm trying to understand how to work the dom, and all I'm trying to do
is insert a link right before another link in the html based on it's
href value. This isn't a real world example - I'm just trying to do
this in phases to understand what's going on. I'm getting an error
(Object doesn't support this property or method) in IE and I can't
figure out what I'm doing wrong. Code:
is it possible to create a link in an email that will go to a site and run its javascript. If so how?what I trying to do is email an alert to selected users when a flash ad is ready. The email will have a link that, when clicked, goes to the home page and displays the ad. the code above takes them to the web site but doesn't run the javascript.
View 1 Replies View RelatedBasically, I am trying to create a drop down menu that, when a link is chosen, instead of leading to an external page will make information appear underneath... is this possible, and if so, how?
View 2 Replies View RelatedI currently have an alert message box appearing which asked the user to visit a website to take a survey. What I would ideally like is a message box appearing which gives them two options in the form of buttons. Yes to take the survey now, which would link to the web page. The second button being cancel which would close the message box, which is normally done with the OK button now.
Any ideas how this can be done?
I have a sample page with three tabs (tabs.html). Tabs are displayed as follows:
<ul class="tabs">
<li><a href="javascript:tabSwitch('tab_1', 'content_1');" id="tab_1" class="active">Tab 1</a></li>
<li><a href="javascript:tabSwitch('tab_2', 'content_2');" id="tab_2">Tab 2</a></li>
<li><a href="javascript:tabSwitch('tab_3', 'content_3');" id="tab_3">Tab 3</a></li>
</ul>
The JavaScript used to switch tabs is:
function tabSwitch(active, number, tab_prefix, content_prefix) {
for (var i = 1; i < number+1; i++) {
document.getElementById(content_prefix+i).style.display = 'none';
document.getElementById(tab_prefix+i).className = '';
}
document.getElementById(content_prefix+active).style.display = 'block';
document.getElementById(tab_prefix+active).className = 'selected';
}
Now, by default, when I link to tabs.html, the first tab is set to active. Is it possible to create a link from another site that links to tabs.html and forces the second or third tab to be active?
I am using a Twitter plugin which outputs tweets as plain text. I would like to take the usernames and create links to their profiles from the text.
So I would like...
Coffee's great @WickedCoffeeCo @StuGoulden. Just not when you're already in a mood.
To become...
Coffee's great @WickedCoffeeCo @StuGoulden. Just not when you're already in a mood.
So I'd like the script to read the text (which will be in a div with an ID of "tweets") and grab each @username and create
HTML Code:
<a href="http://twitter.com/username">@username</a>
First, I did this for testing
<script type="text/javascript">
<!--
var cururl = window.location.href + "?style=1"
document.write(cururl);
//-->
</script>
and it works. It gets the current url of the page and appends ?style=1 then writes out the URL. However getting it as a clickable link is what's stumping me. <script type="text/javascript"><!--function goURL()
{
window.location.href + "?style=1"
}
//-->
</script>
<a href="javascript:goURL()">Go There</a>
Doesn't work in my test. As you can probably see, I'm not very well versed in javascript.
I load an Iframe within html page contained within another page and from the hosting page I would like to scroll to a given bookmark within the page loaded within the iframe without causing it to reload. How do I do this? I have tried:
function navIContent(bm)
{
IContent.src=bm
return
}
called by :
onclick='navIContent("../content.htm#test")'
but it doesn't seem to work!
I use the script below to adjust the size of the frame. It works nicely for me. The only problem is, the frame initially jumps to the bookmark, and then on the reload, jumps to the top of the page.
how to keep the frame at the bookmark in the web page, instead of jumping back up to the top??
<script>
<!--
function resize_iframe(){
if ( window.frames["MainWindow"].document.body.scrollHeight=0 )
[Code]....
I need a script to create a 'Bookmark this site' link. However I only found scripts that let you configure the URL that is bookmarked.
But I'd like to have one that just bookmarks the site on which the link is so I cna use the same script and link on different pages but the user could bookmark that exact page he is on.
Does anyone know how to create a link (<a> . . . </a>) with some piece
of javascript code that has the onClick event set for some function that I also wrote (not a build-in function).
I can find all sorts of samples in these disc.groups but none of them
seems to work for me.
I am focussed on Firefox, but some code that also works for IE, would
be appreciated.
BTW I know how to create elements in the html document, that is not the
problem. The problem is that I seem not te be able to set the onClick event for some created element. I tried for both a link and also for a text-element.
I can set the onClick for some built-in function like alert('Nice Day').
There are loads of examples to be found for that, and they indeed work.
i am trying to create a method in which if i press a arrow key (up) then my any link (lets say it home link) from my main navigation is automatically clicked! and i m redirected to home page.
View 2 Replies View RelatedI would like to create a link from one page to another. Easy - I know. But I would like that link to to take me to a certain part of the other page, specifically towards the bottom of the page.
Is that possible to do? And if so, what are the different ways I can specify where in the page to go? (i.e. what are the parameters that I can play with)
I have created a slideshow before but I want to create a slideshow where a person clicks on a link and it goes to a certain picture which might have one or more links embedded into the picture something like this:
[URL]