I'm a photographer and my web designer is temporary unreachable at the moment and I need to urgently add hyperlink to my site. My site is html and currently I can add new things by editing an existing xml such as the following:
[Code]...
Now I would like to add a hyperlink to it, maybe on Sample description can be changed to Click to Visit with a link to it. I think the xml file is connected to a .js file so if it's relevant you can review the code here [URL]
How to play sound file like .wav file with javascript and/or DHTML when some one mouseover to a link. I have done this... but it only works in IE while it does not work in other browsers like firefox and chrome.
How do I link to a Javascript script like I link to a.css file?
This is the way my code looks, (this does work): Code: <script language="JavaScript">function showObj(objid) { parent.frames['there'].document.getElementById(objid).style.display='block' parent.frames['there'].document.getElementById(objid).style.zindex=Ƌ' }</script> </head> <body onload="showObj('Pg'+parent.document.forms['chapage'].elements['pge'].value);">
I have never been able to get my Javascript into a .js file and still have it work.
Now what I would need is some code that would specifically target the 'links' div and add say page.php to the front of each link contained within it, is such a feat possible? I'm not asking for code just to be written for me, just trying to find avenues to solve my problem.
I am using Lytebox v3.22 and I am trying to find a way to add a link on the popup. At present the link only appears on the thumbs page and is only dimly visible when a popup image is selected. I am using document.write. Although clicking on any area ouside the popup results in seeing the thumbs again this is user unfriendly. How can I add a link back to the thumbs from the popup?
flashvars.targetURL = [URL] to try and get a link on my flash animation. I use swf object. Everything works until I put the targetURL code in. How can I make it work
I have a link to a callender and I want that link to be like <A href="http://blahblah.com/blah/callender.html#Month> so it'll default down to the current month's events. I already have a script that gives me the month, but the problem is that the link is inside a frammed page and there seems to be no way that can incorperate where the target is when (in the script) I do "document.write(TEXT.link(URL))" where the URL is what I want the link to be.
I need to be able to add a link element to the head element through a separate file then the file containing the head element. My attempt was as follows: Code: document.getElementsByName("head").innerHtml += "<link rel="image_src" href="<?php echo $img;?>"/>";
I have this script where if users click on a link it will show that particular link in a slideUp, slideDown effect. For example There are two links and Two divs.Both Divs are hidden to start. If the user clicks link 1, Div 1 will appear. If the user clicks link2 Div 1 will close and Div 2 will appear. how do I add a active state when the user clicks on each particular link.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns ="http://www.w3.org/1999/xhtml"
Is there a way to add a convert and convertBack function for data link plugin outside of passing in the map object? What I'd like to accomplish is have a few custom predefined converts and then on document load add them based on classes found in the form.
I am working on the project that will be only one page and the menu will link to the same page. The problem is that i can't add active class to the menu the same we did in the normal linked pages. For example, in css we can see .about .menu ul li .active a { color:#black} . This means the menu will be in black when the user is in the about page. I can't do like this in one page scroll menu as there is only one menu. Are there any ways to let the menu change (add active class)when i scroll to some specific part of the page?
I wrote my first script, which was designed for innerHTML, and tann I found a website which showed me a few things. It showed me how to use two links per harder, one shown, one hidden, and they just swap out. The final outcome allows ot to do almost any and everything I want ot to.
I've set the menu to only allow one menu opened at a time. Thus, it is prudent to add an expand all link. I've searched all through the web and have found nothing.
I have this javascript that checks screen resolution and opens a custom css file depending on the results and its working fine if I run it from an html version of my site. What I want to try and do is add this script to my header.php file. header.php currently uses this code to define the css style: Code: <style type="text/css" media="screen">@import "<?php echo $this->getStyleSheet('style.css')?>";</style>
The javascript I want to use is in a file called detect.js that looks like this: Code: $(document).ready(function() { if ((screen.width>=1400) && (screen.height>=1050)) { alert('Screen size: 1400x1050 or larger'); $("link[rel=stylesheet]:not(:first)").attr({href : "style.css"}); } else { alert('Screen size: less than 1024x768, 800x600 maybe?'); $("link[rel=stylesheet]:not(:first)").attr({href : "style1.css"}); } });
So heres what I tried but it didn't work instead it just loaded the page without a template. Code: <?php echo '<script type="text/javascript" src="jquery.js"> </script>'; ?> <?php echo '<script type="text/javascript" src="detect.js"></script>'; ?>
I am trying to create a tell a friend script and add the ability for the users to send the email to more recipients than what is hard coded into the form. I have come up with this so far but is wont allow me to let the user 'show more email fields' a second time. I dont know how to write the javascript to allow this? When I tried duplicating the divs and adding a 'show more' link inside the first hidden div it just showed both sets when I clicked.
I am trying to make it where someone can upload a .csv file, and I want to allow them to add multiple ones if they need more than the two that are already there.
The problem with that is once they choose a file or two on those first two, then click the add a new field, it does add the new field so it works, but then the files they chose are gone, so now they have to rechoose them. every time.
I inherited a site that has jscript and html content. The site frame (top and left nav) are controlled by the jscript file. Most all of the content that is displayed when links or topics are selected is placed in the center of the page. I need to put some scrolling text in one of the top frame blocks, (the section that is java script file).
function buildMenus(){ var headerString = ""; var leftnavString = ""; var footerString = "";
[code]....
I have a couple of jscripts that do the scrolling I want, I just need to know how to insert it in the above section.
Any body succeed in adding file browser option to standard CKEditor developed completely with JavaScript.I have followed the link [URL]. it is too complex to understand.If any succeed with this or adding file browser option to simple notepad app
I'm a CSS and PHP developer, finding myself using jquery and AJAX more and more, of course, and learning a little about it as i go. but only a little. :o)i have a client who's asked me to add an image upload feature to a simple comments post script i've "built". i can see, kind of, how this jquery is posting the form text inputs, but have no idea if this thing can even be made to post a file at the same time.Hoping someone might add a function for me to do this if it can be done?
$(document).ready(function(){ /* The following code is executed once the DOM is loaded */ /* This flag will prevent multiple comment submits: */
Can someone tell me how to do it so that only browsers with javascript get the css file. I want to put it in a js file as it will make managing it easier. So in other words, don't provide alternatives
I am building a stand alone help file system (.chm) I have a script for popups that I intend to re-use through-out. The code works fine when the script is above the <head> tag in the html document.
However, I have been unable to get the page to load if I just link to the script. It seems that the script link needs to be placed in different locations dependsing on what you are doing. Any insight?
How to link an external JQuery file to my web page. I understand using <script src=""/>. My question is regarding the file I downloaded from Jquery.com. Do I add code to that file and link it, or do I link that file and then create a new file with javascript in it and link that as well? Do I create a javascript file and somehow link the Jquery file to that javascript file? how to set up Jquery using all external files.