anchor

Adding php code to html anchor tag

邮差的信 提交于 2019-12-24 16:17:10
问题 I'm trying to access an uploaded image which i've saved on my server (in the uploads folder) using the anchor tag. The aim is the provide like a zoom feature. The zoom works fine but the image doesn't display. i tried something like this <?php //$txt is the actual image name and $image is the name saved in uploads folder,$ext is the extension like .jpg or so. $image = time().substr(str_replace(" ", "_", $txt), 5).".".$ext; ?> in the HTML //image isn't displayed using <a href = "<?php echo

how to create an anchor to a file in remote server in html

孤者浪人 提交于 2019-12-24 14:24:10
问题 I am creating a local web portal in my company intranet. In a page I need to give links to some excel sheets in a remote server. urlFile='file://ed1/cf/a/b/c.xls'; var regRsltLink = $("<a />", { href : urlFile, text : "heading", }).appendTo("#legPassRate"); The anchor link appears fine. When I click the link, nothing happens. But when I copy the link address and paste in a new tab and launch it, a file download dialog appears and file downloads fine. Is it possible to initiate a file download

How to pass URL for dynamically generated anchor tags to jQuery hover() function??

依然范特西╮ 提交于 2019-12-24 11:42:03
问题 Hi What I am trying to do here is I am generating a list of Links in HTML as Anchor tags: <a href="/path/100" id="clickme">One link</a> <a href="/path/101" id="clickme">Sec link</a> <a href="/path/102" id="clickme">Third link</a> <a href="/path/103" id="clickme">Fourth link</a> I want to fire Ajax call to the specific URL when someone hovers on any of the link. So I am registering a hover() function like this for this id: $('#clickme').hover(function(){ $.ajax({ beforeSend : function(jqXHR){

Set anchor as active with jquery

北城余情 提交于 2019-12-24 11:04:07
问题 i have short question.. i got 3 content boxes and all have a menu with anchor-links to the content-boxes below! when i visit the site the first anchor is set ti active.. when i click now on no.2 in headline 1 it jumps to the 2nd anchor.. but the problem is i have to scroll a little bit above with the mousewheel to set the 2nd anchor as active. and backwards too. when i click on box3 at anchor1.. any ideas to solve the problem? WHEN SCROLLING UP AND DOWN IT WORKS PERFECT! JUST THE JUMP OVER

anchorpoint issues with CCUIViewWrapper

孤者浪人 提交于 2019-12-24 10:57:13
问题 I am having some issues understanding and using anchorPoint. As I understand it, the default anchor is (.5,.5) which applies transforms about the center of objects. However, when I placed a UIButton into a CCUIViewWrapper, I noticed that scaling it would scale about the right side of the object (i.e. if I scaled from 0 to 1, it would grow from right to left). I wasn't sure what to make of this, but with tinkering found that I had to adjust the anchor point to (0,0) in order to make scaling

Jquery Post UI Tabs not linking properly with page-anchors

别说谁变了你拦得住时间么 提交于 2019-12-24 10:07:27
问题 I'm using page-anchors to direct users to particular tabs from a menu. However when you're on the page with the tabs clicking the link doesn't redirect. It simply changes the hash in the URL. Any idea how I could resolve this? example link http://www.website.com/page#1 This is on WordPress btw. jQuery(document).ready(function($){ $(function() { $( "#tabs" ).tabs(); if(document.location.hash!='') { //get the index from URL hash tabSelect = document.location.hash.substr(1,document.location.hash

Anchor link PDF work around

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 08:46:39
问题 In IE currently anchor linking to a section on a PDF only works if the PDF in question is cached or has been downloaded recently on the user's computer. Example User clicks anchor link to pdf first time PDF loads at the beginning of document User goes back to website and clicks link again PDF loads at anchor linked position Does anyone know of a work around in which the PDF will load at the desired position upon first clicking the link? Note that the anchor links are of the type #page=200 and

a href tel and standard browsers

半腔热情 提交于 2019-12-24 05:59:28
问题 I have a project that requires <a href="tel:123456"> over the phone number (123456 is not the number) however this will cause an issue for everything except mobile browsers by being unable to interpret the tel: bit. I have tried to use jQuery to add the href attr when a browser width is <1000px but this is a very unreliable method (tablets also have a limited resolution). Any ideas on how to overcome this would be greatly appreciated. I am using PHP, jQuery and JavaScript. 回答1: Detect with

I cannot disable link on non-zero date

混江龙づ霸主 提交于 2019-12-24 05:25:07
问题 <tr bgcolor="<?php echo $rowColor ?>" > <td><font face="Arial, Helvetica, sans-serif"><?php echo $f4; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><?php echo $f5; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><?php echo $f3; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><?php echo $deliv_date; ?></font></td> </tr> <?php $i++; } mysql_close(); ?> <tr bgcolor="<?php echo $rowColor ?>" > <td> <strong>Total:</strong> </td> <td colspan="1"> </td> <td >

After visiting links, Firefox selectively skips state change or a:visited styling

狂风中的少年 提交于 2019-12-24 04:20:10
问题 After clicking a link with a common href (local page or web-site) and the href is successfully loaded, both FF2 and IE7 will display the link with a:visited styling. For links with href="javascript:anyfunc()", IE7 works as above while FF2 does not display a:visited styling. No change with any DOCTYPE. Q: Is either behaviour with JS links and :visited considered correct? Q: Does FF2 leave anchor state unchanged after clicking a JS link? Q: Without having to attach an onClick handler or modify