hyperlink

Removing hyperlinks, retaining formulas and format

旧时模样 提交于 2020-01-07 05:30:52
问题 I'm not very good with Excel but I'm going to try and explain my problem. Somehow an excel was created via a Timer and somehow has 100's of invisible hyperlinks spread throughout the sheet. I am trying to find a way to copy from A1:k50 remove all hyperlinks but keep the formulas, values, and format. I found this code online, and I've tried adding HR.PasteSpecial xlPasteFormulas but that doesnt seem to work. Any thoughts/ideas would be much appreciated. Sub RemoveHlinks() 'Remove hyperlinks

How do I pass on javascript variables through a html link tag?

杀马特。学长 韩版系。学妹 提交于 2020-01-07 04:35:10
问题 <a href="javascript:size('x')">HTML Link</a> I have the above code in my html file and want to pass on the variable 'x' to my javascript function 'size()'. In my javascript file, I'm trying to use the variable as follows: function size(id) { document.write("hi user number" + id); } I think my javascript part is correct and that my html syntax for sending the variable is wrong but having a bit of difficulty googling the correct syntax. Could someone help me here? thnx! 回答1: I think you need a

Clickable link (Hyperlink)?

有些话、适合烂在心里 提交于 2020-01-07 04:35:09
问题 I'm sorry if this is a stupid question but I cannot find a answer. Is there a way to create a clickable link say in a MFMailComposeController or in any other NSString ? I just want it to be blue and the user will be able to click it and it will go to that link. Thanks! 回答1: in the mail msg body try this - [mailComposer setMessageBody:msg isHTML:YES]; . So when you put the message compose it of HTML & put this setting so that the mail is sent as HTML... MFMailComposeViewController

alpha sort array of HTML links in anchor tags using javascript

岁酱吖の 提交于 2020-01-06 19:30:55
问题 Ok - This one involves both javascript and Google Apps Script. The problem is with the javascript. I am creating a list of links to files in a Google Drive folder using the following code: function doGet(e) { var template = '<table style =""><tr><th>name</th></tr>APPS_SCRIPT_CONTENT</table>'; var dir = 'MY_FOLDER_ID'; var folder = DriveApp.getFolderById(dir); var contents = folder.getFiles(); var filelist = []; var file, name, url = []; while (contents.hasNext()) { file = contents.next();

alpha sort array of HTML links in anchor tags using javascript

送分小仙女□ 提交于 2020-01-06 19:30:33
问题 Ok - This one involves both javascript and Google Apps Script. The problem is with the javascript. I am creating a list of links to files in a Google Drive folder using the following code: function doGet(e) { var template = '<table style =""><tr><th>name</th></tr>APPS_SCRIPT_CONTENT</table>'; var dir = 'MY_FOLDER_ID'; var folder = DriveApp.getFolderById(dir); var contents = folder.getFiles(); var filelist = []; var file, name, url = []; while (contents.hasNext()) { file = contents.next();

Show only the domain name when replacing a URL with hyperlink

浪子不回头ぞ 提交于 2020-01-06 17:59:30
问题 I have the function below to simply find a url in some text and change it to a hyperlink; but it also shows the entire url. How can I make the function show only the domain name dynamically? // URL TO HYPERLINK function activeUrl($string) { $find = array('`((?:https?|ftp)://\S+[[:alnum:]]/?)`si', '`((?<!//)(www\.\S+[[:alnum:]]/?))`si'); $replace = array('<a href="$1" target="_blank">$1</a>', '<a href="http://$1" target="_blank">$1</a>'); return preg_replace($find,$replace,$string); } 回答1:

Show only the domain name when replacing a URL with hyperlink

大城市里の小女人 提交于 2020-01-06 17:56:47
问题 I have the function below to simply find a url in some text and change it to a hyperlink; but it also shows the entire url. How can I make the function show only the domain name dynamically? // URL TO HYPERLINK function activeUrl($string) { $find = array('`((?:https?|ftp)://\S+[[:alnum:]]/?)`si', '`((?<!//)(www\.\S+[[:alnum:]]/?))`si'); $replace = array('<a href="$1" target="_blank">$1</a>', '<a href="http://$1" target="_blank">$1</a>'); return preg_replace($find,$replace,$string); } 回答1:

styling visited links belonging to a class

谁都会走 提交于 2020-01-06 15:42:12
问题 I cannot find a way to style a:visited but only those belonging to .extern . a:visited.extern doesn't work and neither does a.extern:visited (I' using Mozilla Firefox 43.0.1 for Linux x86_64) The reason is I have a small icon I'd like to add to .extern links, and I want to change its url() when the link is visited. <style> a.extern { padding-right:1.3em; background-repeat: no-repeat; background-attachment: scroll; background-position: right center; background-clip: border-box; background

Javascript needed to keep active page link highlighted - html5 & css

不问归期 提交于 2020-01-06 14:16:09
问题 I have read and tried numerous version of javascript and I can not seem to get my active page link to stay highlighted. Please help. Java script is not my thing. Doc type is HTML5 Below is CSS nav a:link { color: #FFFDEF; text-decoration: none; padding-left: 10px; padding-right: 10px; } nav a:visited { color: #FFFDEF; text-decoration: none; padding-left: 10px; padding-right: 10px; } nav a:hover { color: #F38000; text-decoration: none; padding-left: 10px; padding-right: 10px; background-color:

How to send a link message to mobile via bluetooth in C#

拟墨画扇 提交于 2020-01-06 08:24:09
问题 My requirement is to send a link message to mobile via bluetooth in C#. The message should contain some hyperlink. And when the user opens the message it should directly open the link in browser. It should work without installing any other application on mobile device. 回答1: I am not sure this is possible. Generally there are some security precautions in browsers so there might be some restrictions in automatic launching. As far as I know the URL detection and email address detection are